Description Usage Arguments Value References Examples
This function returns the empirical chi-squared statistic for intensities
observations from two CMBWindow
s of the specified
CMBDataFrame
. The functions employs the function chi2.empirical and uses histogram
counts of intensities
for computations.
1 | chi2CMB(cmbdf, win1, win2, intensities = "I")
|
cmbdf |
A |
win1 |
A |
win2 |
A |
intensities |
A |
Estimated Chi-squared statistic for observations in two
CMBWindow
s. For small sample sizes and many zero counts
Chi-squared statistic is inefficient.
chi2.empirical
1 2 3 4 5 6 7 8 9 10 11 | ## Download the map first
# downloadCMBMap(foreground = "smica", nside = 1024)
# df <- CMBDataFrame("CMB_map_smica1024.fits")
# cmbdf <- sampleCMB(df, sample.size = 1000)
#
# win1 <- CMBWindow(theta = c(0,pi/2,pi/2), phi = c(0,0,pi/2))
# win2 <- CMBWindow(theta = c(pi/2,pi,pi/2), phi = c(0,0,pi/2))
# plot(win1)
# plot(win2,col="green")
#
# chi2CMB(cmbdf, win1, win2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.