Click or drag to resize

UniformDistribution Class

Represents a Uniform distribution.
Inheritance Hierarchy

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public class UniformDistribution : ProbabilityDistribution

The UniformDistribution type exposes the following members.

Constructors
  NameDescription
Public methodUniformDistribution
Initializes a new instance of the UniformDistribution class defined on an interval having the specified lower and upper bounds.
Top
Properties
  NameDescription
Public propertyCanInvertCdf
Gets a value indicating whether this instance can invert its cumulative distribution function.
(Overrides ProbabilityDistributionCanInvertCdf.)
Public propertyLowerBound
Gets the lower bound of the interval on which this instance is defined.
Public propertyRandomNumberGenerator
Gets or sets the basic random generator for this instance.
(Inherited from RandomDevice.)
Public propertyUpperBound
Gets the upper bound of the interval on which this instance is defined.
Top
Methods
  NameDescription
Public methodCdf(Double)
Computes the cumulative distribution function of this instance at the specified argument.
(Overrides ProbabilityDistributionCdf(Double).)
Public methodCdf(DoubleMatrix)
Computes the cumulative distribution function of this instance at the specified arguments.
(Inherited from ProbabilityDistribution.)
Public methodCdf(ReadOnlyDoubleMatrix)
Computes the cumulative distribution function of this instance at the specified arguments.
(Inherited from ProbabilityDistribution.)
Public methodStatic memberDefault
Creates a Uniform distribution on the interval having lower and upper bounds equal to 0 and 1, respectively.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInverseCdf(Double)
Computes the inverse of the cumulative distribution function of this instance at the specified argument.
(Overrides ProbabilityDistributionInverseCdf(Double).)
Public methodInverseCdf(DoubleMatrix)
Computes the inverse of the cumulative distribution function of this instance at the specified arguments.
(Inherited from ProbabilityDistribution.)
Public methodInverseCdf(ReadOnlyDoubleMatrix)
Computes the inverse of the cumulative distribution function of this instance at the specified arguments.
(Inherited from ProbabilityDistribution.)
Public methodMean
Computes the mean of this instance.
(Overrides ProbabilityDistributionMean.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnSample
Called when drawing a sample from this instance having the given size and returns it in a given destination array.
(Overrides ProbabilityDistributionOnSample(Int32, Double, Int32).)
Public methodPdf(Double)
Computes the probability density function of this instance at the specified argument.
(Overrides ProbabilityDistributionPdf(Double).)
Public methodPdf(DoubleMatrix)
Computes the probability density function of this instance at the specified arguments.
(Inherited from ProbabilityDistribution.)
Public methodPdf(ReadOnlyDoubleMatrix)
Computes the probability density function of this instance at the specified arguments.
(Inherited from ProbabilityDistribution.)
Public methodSample
Draws a sample point from this instance.
(Overrides ProbabilityDistributionSample.)
Public methodSample(Int32)
Draws a sample from this instance having the specified size and returns it as a matrix.
(Inherited from ProbabilityDistribution.)
Public methodSample(Int32, Double, Int32)
Draws a sample from this instance having the specified size and returns it in a destination array.
(Inherited from ProbabilityDistribution.)
Public methodStandardDeviation
Computes the standard deviation of this instance.
(Inherited from ProbabilityDistribution.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVariance
Computes the variance of this instance.
(Overrides ProbabilityDistributionVariance.)
Top
Remarks

The Uniform density function can be written as follows:

LaTeX equation

where LaTeX equation, while LaTeX equation and LaTeX equation are the lower and upper bounding parameters of the distribution, with LaTeX equation.

The lower bound parameter, LaTeX equation, and the upper bound one, LaTeX equation, can be get through the properties LowerBound and UpperBound, respectively.

See Also