Class Solver_ssj.DistributionGen

java.lang.Object
umontreal.ssj.randvar.RandomVariateGen
jline.solvers.ldes.handlers.Solver_ssj.DistributionGen
Enclosing class:
Solver_ssj

public static class Solver_ssj.DistributionGen extends umontreal.ssj.randvar.RandomVariateGen
Samples a declared Distribution off an SSJ stream.

For laws whose sn.proc carries an Erlang placeholder and whose two moments do not determine them (LogLogistic with infinite variance, MassAtOrigin with any inner law), the declared object is the only exact source. Its sample(n, Random) is driven by a Random that draws every bit from the stream, so the run stays seeded and reproducible.

  • Field Summary

    Fields inherited from class umontreal.ssj.randvar.RandomVariateGen

    stream
  • Constructor Summary

    Constructors
    Constructor
    Description
    DistributionGen(umontreal.ssj.rng.RandomStream stream, Distribution dist)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     

    Methods inherited from class umontreal.ssj.randvar.RandomVariateGen

    getDistribution, getStream, nextArrayOfDouble, nextArrayOfDouble, setStream, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DistributionGen

      public DistributionGen(umontreal.ssj.rng.RandomStream stream, Distribution dist)
  • Method Details

    • nextDouble

      public double nextDouble()
      Overrides:
      nextDouble in class umontreal.ssj.randvar.RandomVariateGen