Class TriangularRV

    • Constructor Detail

      • TriangularRV

        public TriangularRV​(double min,
                            double mode,
                            double max)
      • TriangularRV

        public TriangularRV​(double min,
                            double mode,
                            double max,
                            int streamNum)
      • TriangularRV

        public TriangularRV​(double min,
                            double mode,
                            double max,
                            RNStreamIfc rng)
    • Method Detail

      • newInstance

        public TriangularRV newInstance​(RNStreamIfc rng)
        Parameters:
        rng - the RngIfc to use
        Returns:
        a new instance with same parameter value
      • getMinimum

        public double getMinimum()
        Returns:
        the minimum
      • getMode

        public double getMode()
        Returns:
        the mode or most likely value
      • getMaximum

        public double getMaximum()
        Returns:
        the maximum
      • generate

        protected double generate()
        Specified by:
        generate in class AbstractRVariable
        Returns:
        the randomly generated variate
      • makeControls

        public static RVControls makeControls()
        The keys are "min" with default value 0.0 and "mode" with default value 0.5, and "max" with default value 1.0
        Returns:
        a control for Triangular random variables