countBinnedObservations: Counter of number of observations that fall into each of a...

Description Usage Arguments Value See Also

Description

countBinnedObservations takes an observations vector and a vector of values that define the (inclusive) left endpoints of a series of bins that will discretize the distribution of observations.

Usage

1
2
countBinnedObservations(observations, binBounds, strictLowerBound = TRUE,
  pseudocount = 0)

Arguments

observations

The observed values that come from a theoretically continuous distribution to discretize.

binBounds

The vector of values that defines the (inclusive) left endpoint for each bin, that collectively will discretize the hypothetically continuous distribution of observations.

strictLowerBound

Whether the lower bin bound is expected to be strict. That is, no observation should fall beneath it. If TRUE and this happens, it's an error. If TRUE but valid, then the returned counts distribution excludes the low ("0") bin defined by findInterval.

pseudocount

The count for any bin that contains no observations.

Value

Observation count for each bin.

See Also

findInterval


vreuter/SwissR documentation built on May 14, 2019, 11:29 a.m.