extrCMB: Extreme values

View source: R/Statistics.R

extrCMBR Documentation

Extreme values

Description

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

Usage

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

## 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)


frycast/rcosmo documentation built on Oct. 11, 2022, 5:21 p.m.