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 Type
    Method
    Description
    double
    Generates a sample value based on the implementation's defined sampling strategy.
  • Method Details

    • sample

      double sample() throws IllegalArgumentException
      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