extremality: compute the fraction of a Bernoulli variance achieved by a...

Description Usage Arguments Details Value

Description

Note: this works (efficiently) on matrices and DelayedMatrix objects. Also note: since it is posssible for "raw" extremality to be > 1, the function does a second pass to correct for this.

Usage

1

Arguments

x

an rectangular object with proportions in it

raw

skip the correction pass? (FALSE)

Details

extremal <- c(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0) milder <- c(0.8, 0.2, 0.1, 0.3, 0.7, 0.1, 0.4, 0.1, 0.1, 0.2)

extremality(extremal, raw=TRUE) extremality(extremal, raw=FALSE)

FIXME: this breaks when handed a single-row DelayedArray.

Value

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

ttriche/biscuitEater documentation built on May 15, 2019, 4:18 p.m.