DistContinuous
- class pydsol.core.distributions.DistContinuous(stream: StreamInterface)[source]
Bases:
Distribution
The Continuous distribution. For more information on this distribution see https://mathworld.wolfram.com/ContinuousDistribution.html.
- __init__(stream: StreamInterface)[source]
Initialize the distribution with a random stream.
- abstract probability_density(x: float) float [source]
Returns the probability density value for value x.
- abstract draw() int | float
Draw a random value from the distribution function. For discrete distributions, this function will return an int, for continuous distributions it will return a float.
- property stream: StreamInterface
Return the current random stream for this distribution.