Learn R Programming

rcosmo (version 1.1.6)

assumedConvex: Check if a CMBWindow is assumed convex.

Description

Initially any CMBWindow is not assumed convex. The assumedConvex attribute can be change for any CMBWindow.

Usage

assumedConvex(win, assume.convex)

Value

A logical value giving the convexity assumption when assume.convex is omitted; otherwise the CMBWindow with its convexity attribute updated.

Arguments

win

a CMBWindow object

assume.convex

optionally change the assumedConvex attribute to TRUE or FALSE

Examples

Run this code

win1 <- CMBWindow(theta = c(0,pi/2,pi/2), phi = c(0,0,pi/2))
assumedConvex(win1)
win2 <- assumedConvex(win1, assume.convex = TRUE)
assumedConvex(win2)
assumedConvex(win1) <- TRUE
assumedConvex(win1)

Run the code above in your browser using DataLab