Companion

object Companion

Functions

Link copied to clipboard
fun binProbabilities(histogram: Histogram, discreteCDF: ProbInRangeIfc): DoubleArray

Returns the probability for each bin of the histogram based on an open integer range interpretation of the bin . The discrete distribution, discreteCDF must implement the ProbInRangeIfc interface

Link copied to clipboard

Constructs an instance of the appropriate discrete probability distribution for the provided random variable parameters. If no probability distribution is defined for the supplied type of random variable, then null is returned.

Link copied to clipboard

This function is similar in purpose to the similarly named function in PDFModeler. The primary difference is that this function ensures that the returned break points are unique because a set of probability values may map to the same value for a discrete distribution.

Link copied to clipboard

Returns the expected counts for each bin of the histogram as the first element of the Pair. The second element is the probability associated with each bin of the histogram. The discrete distribution, discreteCDF must implement the ProbInRangeIfc interface

Link copied to clipboard

Creates break points for discrete distributions with domain 0 to positive infinity such as the Poisson and NegativeBinomial distributions. An attempt is made to achieve breakpoints with approximately equal probabilities. Zero is added as the first break point and positive infinity is added as the last break point.