Learn R Programming

rcosmo (version 1.1.6)

exprob: Threshold exceedance probability

Description

This function returns an estimated exceedance probability for the specified CMBDataFrame column intensities, threshold level \(alpha\) and CMBWindow region.

Usage

exprob(cmbdf, win, alpha, intensities = "I")

Value

Estimated threshold exceedance probability

Arguments

cmbdf

A CMBDataFrame.

win

A CMBWindow

alpha

A numeric threshold level.

intensities

The name of the column in cmbdf that contains the measured values.

Examples

Run this code
set.seed(1)
cmbdf <- CMBDataFrame(nside = 8, I = rnorm(12 * 8^2), ordering = "nested")
win1 <- CMBWindow(theta = c(0, pi/2, pi/2), phi = c(0, 0, pi/2))
exprob(cmbdf, win1, alpha = mean(cmbdf$I))

Run the code above in your browser using DataLab