Click or drag to resize

RandGenBeta Class

Class RandGenBeta generates random numbers from a beta distribution.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreRandomNumberGenerator
    CenterSpace.NMath.CoreRandGenBeta

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

The RandGenBeta type exposes the following members.

Constructors
 NameDescription
Public methodRandGenBeta Constructs a random number generator using class RandGenMTwist as the underlying uniform random number generator. Generated random numbers will follow a beta distribution with alpha and beta equal to one.
Public methodRandGenBeta(Double) Constructs a random number generator using class RandGenMTwist as the underlying uniform random number generator. Generated random numbers will follow a beta distribution with the specified alpha. The beta parameter defaults to one.
Public methodRandGenBeta(Int32) Constructs a random number generator using class RandGenMTwist as the underlying uniform random number generator. Generated random numbers will follow a beta distribution with alpha and beta equal to one.
Public methodRandGenBeta(RandomNumberGeneratorUniformRandomNumber) Constructs a random number generator using the given delegate as the underlying uniform random number generator. Generated random numbers will follow a beta distribution with alpha and beta equal to one.
Public methodRandGenBeta(Double, RandomNumberGeneratorUniformRandomNumber) Constructs a random number generator using the given delegate as the underlying uniform random number generator. Generated random numbers will follow a beta distribution with the specified alpha. The beta parameter defaults to 1.
Public methodRandGenBeta(Double, Double) Constructs a random number generator using class RandGenMTwist as the underlying uniform random number generator. Generated random numbers will follow a beta distribution with the specified alpha and beta parameters.
Public methodRandGenBeta(Double, Int32) Constructs a random number generator using class RandGenMTwist as the underlying uniform random number generator. Generated random numbers will follow a beta distribution with the specified alpha. The beta parameter defaults to one.
Public methodRandGenBeta(Double, Double, RandomNumberGeneratorUniformRandomNumber) Constructs a random number generator using the given delegate as the underlying uniform random number generator. Generated random numbers will follow a beta distribution with the specified alpha and beta parameter.
Public methodRandGenBeta(Double, Double, Int32) Constructs a random number generator using class RandGenMTwist as the underlying uniform random number generator. Generated random numbers will follow a beta distribution with the specified alpha and beta parameters.
Top
Properties
 NameDescription
Public propertyAlpha Gets and sets the alpha, or shape parameter, of the beta distribution.
Public propertyBeta Gest and sets the beta parameter of the beta distribution.
Public propertyUniformDeviateMethod Gets and sets the delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator)
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(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 methodFill(Single) Fills the given array of floats with random values.
(Inherited from RandomNumberGenerator)
Public methodNext Generates a random number.
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 underlying gamma random number generators with the specified seed.
Top
Fields
 NameDescription
Protected fieldrand_ A delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator)
Top
Remarks
A random variable, W, is said to have a beta distribution of alpha a and beta b if it has a probability density function f(x) = (1 / beta(a, b)) * (x ^ (a - 1)) * ((1 - x) ^ (beta - 1)) where is the beta function.
See Also