CumulativeDist class

The cenreg.distribution.cdf.CumulativeDist class is a representation of a cumulative distribution function (CDF) that is defined on a set of bins.

The parameter b represents the bins used to define the discrete distribution. The parameter p represents the probabilities corresponding to each bin, and the cum_p parameter represents the cumulative probabilities of p.

The interpolate parameter determines how the CDF is interpolated between the bins, with options for ‘right’, ‘left’, and ‘linear’.

_images/CumulativeDist_right.png

The illustration of the CDF, where the interpolate parameter is set to right.

_images/CumulativeDist_left.png

The illustration of the CDF, where the interpolate parameter is set to left.

_images/CumulativeDist_linear.png

The illustration of the CDF, where the interpolate parameter is set to linear.