Skip to main content

Module instance

Module instance 

Source
Expand description

The instance module provides concrete implementations of the DurationSampler trait.

These include various statistical distributions (e.g., ConstantSampler, UniformSampler, ExponentialSampler, NormalSampler, PoissonSampler), as well as samplers for empirical data (EmpiricalSampler), rotational patterns (RotateSampler), and conditional choices (ChoiceSampler).

Structs§

ChoiceSampler
A sampler that selects one of several sub-samplers based on a weighted distribution.
ConstantSampler
A sampler that consistently returns a constant value.
EmpiricalSampler
A sampler that draws from a discrete empirical distribution.
ExponentialSampler
A sampler that draws from an exponential distribution with a specified lambda (rate).
ModeSampler
A sampler that switches between different sub-samplers based on a TimeTrigger.
NormalSampler
A sampler that draws from a normal (Gaussian) distribution.
PoissonSampler
A sampler that draws from a Poisson distribution with a specified lambda (rate).
RotateSampler
A sampler that returns durations from a fixed list in a cyclic (rotating) order.
UniformSampler
A sampler that draws from a continuous uniform distribution within [lower_bound, higher_bound).

Traits§

TimeTrigger
A trait to determine which sampler should be active based on the current simulation time.