Class ExponentialSampler

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

public final class ExponentialSampler extends Object implements Sampler
Sampler for exponential random variables.
  • Constructor Details

    • ExponentialSampler

      public ExponentialSampler(BigDecimal rate)
    • ExponentialSampler

      public ExponentialSampler(EXP f)
  • Method Details

    • getSample

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