treble_tsdk.collections.distributions
Classes
- class treble_tsdk.collections.distributions.Beta
- class treble_tsdk.collections.distributions.Bimodal
- class treble_tsdk.collections.distributions.DistributionBase
- __init__(seed: int | None = None)
Initialize the distribution with an optional seed.
- Parameters:
seed – Random seed for reproducibility. If None, non-deterministic.
- abstract sample(n: int) numpy.ndarray
- class treble_tsdk.collections.distributions.Exponential
- class treble_tsdk.collections.distributions.Gaussian
- class treble_tsdk.collections.distributions.LogNormal
- class treble_tsdk.collections.distributions.ScaledBeta
- __init__(low: float, high: float, a: float = 2.0, b: float = 2.0, step: float | None = None, seed: int | None = None)
Beta distribution scaled to a given range [low, high] with optional discrete grid points.
- Parameters:
low – The lower bound of the range.
high – The upper bound of the range.
a – The shape parameter of the beta distribution.
b – The shape parameter of the beta distribution.
step – The spacing between discrete grid points; if None, values are sampled continuously to floating point precision.
seed – The seed for the random number generator.
- class treble_tsdk.collections.distributions.Uniform
- __init__(low: float, high: float, step: float | None = None, seed: int | None = None)
Uniform distribution on a given range [low, high] with optional discrete grid points.
- Parameters:
low – The lower bound of the range.
high – The upper bound of the range.
step – The spacing between discrete grid points; if None, values are sampled continuously to floating point precision.
seed – The seed for the random number generator.