treble_tsdk.collections.distributions¶
Classes
- class treble_tsdk.collections.distributions.Bimodal¶
- __init__(mean1: float, std1: float, mean2: float, std2: float, weight1: float = 0.5, seed: int | None = None)¶
Initialize the distribution with an optional seed.
- Parameters:
seed – Random seed for reproducibility. If None, non-deterministic.
- sample(n: int) numpy.ndarray¶
Sample from bimodal distribution by mixing samples from both distributions.
- 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¶
- __init__(scale: float, seed: int | None = None)¶
Initialize the distribution with an optional seed.
- Parameters:
seed – Random seed for reproducibility. If None, non-deterministic.
- sample(n: int) numpy.ndarray¶
- class treble_tsdk.collections.distributions.Gaussian¶
- __init__(mean: float, std: float, seed: int | None = None)¶
Initialize the distribution with an optional seed.
- Parameters:
seed – Random seed for reproducibility. If None, non-deterministic.
- sample(n: int) numpy.ndarray¶
- class treble_tsdk.collections.distributions.LogNormal¶
- __init__(mean: float, sigma: float, seed: int | None = None)¶
Initialize the distribution with an optional seed.
- Parameters:
seed – Random seed for reproducibility. If None, non-deterministic.
- sample(n: int) numpy.ndarray¶