extremality: Compute fraction of a Bernoulli variance

Description Usage Arguments Value Examples

View source: R/extremality.R

Description

Works efficiently on matrices and DelayedMatrix objects. Note that it is possible for "raw" extremality to be greater than 1, so this function does a second pass to correct for this.

Usage

1

Arguments

x

A rectangular object with proportions in it

raw

Skip the correction pass? (DEFAULT: FALSE)

Value

1
The extremality of each row (if more than one) of the object

Examples

1
2
3
4
  x <- rnorm(100, mean=0.5, sd=0.15)
  x <- matrix(x, nrow=50, ncol=2)

  ext <- extremality(x, raw=TRUE)

biscuiteer documentation built on Nov. 8, 2020, 8:28 p.m.