extrCMB: Extreme values

Description Usage Arguments Value Examples

View source: R/Statistics.R

Description

This function returns n largest extreme values for the specified CMBDataFrame column intensities and CMBWindow region.

Usage

1
extrCMB(cmbdf, win, n, intensities = "I")

Arguments

cmbdf

A CMBDataFrame.

win

A CMBWindow

n

An integer value.

intensities

A CMBDataFrame column with measured values.

Value

A CMBDataFrame with n largest extreme values

Examples

 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(pi/2,pi,pi/2), phi = c(0,0,pi/2))
# extrCMB(cmbdf, win1,5)
#
## Ploting the window and 5 top extreme values
# plot(win1)
# plot(extrCMB(cmbdf, win1,5), col ="blue", size = 4,add = TRUE)

rcosmo documentation built on Dec. 11, 2021, 9:29 a.m.