Class UniformSampler

java.lang.Object
org.oristool.simulator.samplers.UniformSampler
All Implemented Interfaces:
Sampler

public class UniformSampler extends Object implements Sampler
Sampler for uniform random variables.
  • Constructor Details

    • UniformSampler

      public UniformSampler(BigDecimal min, BigDecimal max)
      Creates a uniform sampler between min and max.
      Parameters:
      min - minimum value (inclusive)
      max - maximum value (exclisive)
  • Method Details

    • getSample

      public BigDecimal getSample()
      Description copied from interface: Sampler
      Returns the next sample.
      Specified by:
      getSample in interface Sampler
      Returns:
      next sample