Interface Sampler
- All Known Implementing Classes:
DistributionSampler, ExpressionSampler
public interface Sampler
Represents a generic sampling interface that provides a method
to obtain a sampled value. Implementations of this interface
are expected to define specific sampling strategies.
-
Method Summary
Modifier and TypeMethodDescriptiondoublesample()Generates a sample value based on the implementation's defined sampling strategy.
-
Method Details
-
sample
Generates a sample value based on the implementation's defined sampling strategy.- Returns:
- a sampled value as a double
- Throws:
IllegalArgumentException- if the sampling conditions are invalid
-