Class ConstantGen

  • All Implemented Interfaces:

    
    public final class ConstantGen
    extends RandomVariateGen
                        

    Custom random variate generator for deterministic (constant) values. Used when simulating deterministic distributions in SSJ.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected final RandomStream stream
      protected final Distribution dist
    • Constructor Summary

      Constructors 
      Constructor Description
      ConstantGen(RandomStream stream, Double value)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Double nextDouble()
      • 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, toString, wait, wait, wait