chi2CMB | R Documentation |
CMBWindow
sThis 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.
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
## 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.