Distribution
- class pydsol.core.distributions.Distribution(stream: StreamInterface)[source]
Bases:
ABC
The Distribution defines the interface for both discrete and continuous distributions.
- __init__(stream: StreamInterface)[source]
Initialize the distribution with a random stream.
- abstract draw() int | float [source]
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.