ContinuousDistribution¶
A probability distribution for continuous values.
Parameters¶
-
seed (int) – defaults to
None
Random number generator seed for reproducibility.
Attributes¶
-
mode
The most likely value in the distribution.
-
n_samples
The number of observed samples.
Methods¶
call
Probability mass/density function.
Parameters
- x (Any)
cdf
Cumulative density function, i.e. P(X <= x).
Parameters
- x (float)
revert
Reverts the parameters of the distribution for a given observation.
Parameters
- x (float)
sample
Sample a random value from the distribution.
update
Updates the parameters of the distribution given a new observation.
Parameters
- x (float)