Click or drag to resize

RandGenTriangular Class

Class RandGenTriangular generates random numbers from a triangular distribution.
Inheritance Hierarchy

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
public class RandGenTriangular : RandomNumberGenerator

The RandGenTriangular type exposes the following members.

Constructors
  NameDescription
Public methodRandGenTriangular
Constructs a random number generator using a RandGenMTwist as the underlying uniform random number generator. The lower bound of the deviates is -1, the upper bound is 1, and the mode is 0.
Public methodRandGenTriangular(Int32)
Constructs a random number generator using a seeded RandGenMTwist as the underlying uniform random number generator. The lower bound of the deviates is -1, the upper bound is 1, and the mode is 0.
Public methodRandGenTriangular(RandomNumberGeneratorUniformRandomNumber)
Constructs a random number generator using the given delegate as the underlying uniform random number generator. The lower bound of the deviates is -1, the upper bound is 1, and the mode is 0.
Public methodRandGenTriangular(Double, Double, Double)
Constructs a random number generator using a RandGenMTwist as the underlying uniform random number generator. The generated deviates will follow a triangular distribution with the specified lower bound, upper bound, and mode.
Public methodRandGenTriangular(Double, Double, Double, RandomNumberGeneratorUniformRandomNumber)
Constructs a random number generator using the given delegate as the underlying uniform random number generator. The generated deviates will follow a triangular distribution with the specified lower bound, upper bound, and mode.
Public methodRandGenTriangular(Double, Double, Double, Int32)
Constructs a random number generator using a seeded RandGenMTwist as the underlying uniform random number generator. The generated deviates will follow a triangular distribution with the specified lower bound, upper bound, and mode.
Top
Properties
  NameDescription
Public propertyLowerBound
Gets the lower bound for the distribution.
Public propertyMode
Gets the mode for the distribution.
Public propertyUniformDeviateMethod
Gets and sets the delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator.)
Public propertyUpperBound
Gets the upper bound for the distribution.
Top
Methods
  NameDescription
Public methodClone
Creates a deep copy of this random number generator.
(Overrides RandomNumberGeneratorClone.)
Public methodFill(Double)
Fills the given array of doubles with random values.
(Overrides RandomNumberGeneratorFill(Double).)
Public methodFill(Single)
Fills the given array of floats with random values.
(Inherited from RandomNumberGenerator.)
Public methodFill(DoubleComplex)
Fills the given array of double-precision complex numbers with random values.
(Overrides RandomNumberGeneratorFill(DoubleComplex).)
Public methodFill(DoubleDataBlock)
Fills the given data block with random values.
(Inherited from RandomNumberGenerator.)
Public methodFill(FloatComplex)
Fills the given array of single-precision complex numbers with random values.
(Inherited from RandomNumberGenerator.)
Public methodNext
Gets the next random deviate.
Public methodNextDouble
Generates a double precision random number.
(Overrides RandomNumberGeneratorNextDouble.)
Public methodNextDoubleComplex
Method for generating a double precision complex number random deviate.
(Overrides RandomNumberGeneratorNextDoubleComplex.)
Public methodNextFloat
Method for generating a single precision random deviate.
(Inherited from RandomNumberGenerator.)
Public methodNextFloatComplex
Method for generating a single precision complex number random deviate.
(Inherited from RandomNumberGenerator.)
Public methodReset
Resets the random number generator using a random seed.
(Inherited from RandomNumberGenerator.)
Public methodReset(Int32)
Resets the random number generator with the specified seed.
(Inherited from RandomNumberGenerator.)
Public methodSetParameters
Sets the lower bound, upper bound, and mode for the distribution.
Top
Fields
  NameDescription
Protected fieldrand_
A delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator.)
Top
See Also