Learn R Programming

rcosmo (version 1.1.6)

entropyCMB: CMB Entropy

Description

This function returns an estimated entropy for the specified CMBDataFrame column intensities and CMBWindow region. The functions employs the function entropy and uses histogram counts of intensities for computations. All arguments of the standard entropy can be used.

Usage

entropyCMB(cmbdf, win, intensities = "I", method)

Value

Estimated Shannon entropy for observations in CMBWindow

Arguments

cmbdf

A CMBDataFrame.

win

A CMBWindow

intensities

A CMBDataFrame column with measured values.

method

A method to estimate entropy, see entropy

References

entropy

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))
entropyCMB(cmbdf, win1)

Run the code above in your browser using DataLab