IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Meta.Numerics.Statistics.Distributions.DiscreteDistribution Class Referenceabstract

Represents all discrete, univariate probability distrubtions. More...

+ Inheritance diagram for Meta.Numerics.Statistics.Distributions.DiscreteDistribution:
+ Collaboration diagram for Meta.Numerics.Statistics.Distributions.DiscreteDistribution:

Public Member Functions

abstract double ProbabilityMass (int k)
 Returns the probability of the obtaining the given value. More...
 
virtual double LeftExclusiveProbability (int k)
 Computes the probability of obtaining a value less than the given value. More...
 
virtual double LeftInclusiveProbability (int k)
 Computes the probability of obtaining a value less than or equal to the given value. More...
 
virtual double RightExclusiveProbability (int k)
 Computes the probability of obtaining a value greater than the given value. More...
 
virtual int InverseLeftProbability (double P)
 Computes the value corresponding to the given percentile. More...
 
virtual double ExpectationValue (Func< int, double > f)
 Computes the expectation value of an artibrary function. More...
 
override double Moment (int r)
 Gets a raw moment of the distribution. More...
 
override double MomentAboutMean (int r)
 Gets a central moment of the distribution. More...
 
virtual int GetRandomValue (Random rng)
 Produces a random integer drawn from the distribution. More...
 
- Public Member Functions inherited from Meta.Numerics.Statistics.Distributions.UnivariateDistribution
virtual double Cumulant (int r)
 Computes a cumulant of the distribution. More...
 

Properties

abstract int Minimum [get]
 Gets the smallest value in the distribution. More...
 
abstract int Maximum [get]
 Gets the largest value in the distribution. More...
 
override double Mean [get]
 Gets the mean of the distribution. More...
 
- Properties inherited from Meta.Numerics.Statistics.Distributions.UnivariateDistribution
virtual double Mean [get]
 Gets the mean of the distribution. More...
 
virtual double Variance [get]
 Gets the variance of the distribution. More...
 
virtual double StandardDeviation [get]
 Gets the standard deviation of the distribution. More...
 
virtual double Skewness [get]
 Gets the skewness of the distribution. More...
 
virtual double ExcessKurtosis [get]
 Gets the excess kurtosis of the distribution. More...
 

Detailed Description

Represents all discrete, univariate probability distrubtions.

A discrete distribution is a distribution over the integers.

Member Function Documentation

virtual double Meta.Numerics.Statistics.Distributions.DiscreteDistribution.LeftInclusiveProbability ( int  k)
inlinevirtual
virtual double Meta.Numerics.Statistics.Distributions.DiscreteDistribution.ExpectationValue ( Func< int, double >  f)
inlinevirtual

Computes the expectation value of an artibrary function.

Parameters
fThe function.
Returns
The expectation value of the function.

Reimplemented in Meta.Numerics.Statistics.Distributions.KolmogorovTwoSampleExactDistribution.

Referenced by Test.DiscreteDistributionTest.DiscreteDistributionMean(), Test.DiscreteDistributionTest.DiscreteDistributionUnitarity(), and Test.DiscreteDistributionTest.DiscreteDistributionVariance().

virtual int Meta.Numerics.Statistics.Distributions.DiscreteDistribution.GetRandomValue ( Random  rng)
inlinevirtual

Produces a random integer drawn from the distribution.

Parameters
rngA random number generator.
Returns
A random integer drawn from the distribution.

Referenced by FutureTest.FutureTest.ChiSquareDistribution(), and Test.DiscreteDistributionTest.DiscreteDistributionRandomValues().

Property Documentation


The documentation for this class was generated from the following file: