Click or drag to resize
GammaDistribution Class
Evaluates a gamma probability density for a given set of data.
Inheritance Hierarchy
SystemObject
  Imsl.StatGammaDistribution

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
[SerializableAttribute]
public class GammaDistribution : IProbabilityDistribution, 
	IDistribution

The GammaDistribution type exposes the following members.

Constructors
  NameDescription
Public methodGammaDistribution
Initializes a new instance of the GammaDistribution class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEval(Double)
Fits a gamma probability distribution to xData and returns the probability density at each value.
Public methodEval(Double, Object)
Evaluates a gamma probability density at a given point xData.
Public methodEval(Double, Object)
Evaluates a gamma probability distribution with a given set of parameters at each point in xData and returns the probability density at each value.
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 a hash function for a particular type.
(Inherited from Object.)
Public methodGetParameters
Returns the current parameters of the gamma probability density function.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyScaleParameter
The maximum-likelihood estimate found for the gamma scale parameter.
Public propertyShapeParameter
The maximum-likelihood estimate found for the gamma shape parameter.
Top
Remarks

GammaDistribution evaluates the gamma density of a given set of data, xData. If parameters are not supplied, the Eval method fits the gamma probability density function to the data by first calculating the shape and scale parameters using an MLE technique for a best fit. The gamma probability density function is defined as:

 f(x)= {x}^{a-1}\frac{e^{-\frac{x}{b}}} {b^a \Gamma(a)} \mbox{,}\,\,\,x \gt 0 \,\mbox{,}\,\,a \gt 0 \,\,\,\mbox{and}\,\,\, b \gt 0 \,\,\mbox{,}
where a and b are the scale and shape parameters.

The DataMining package class NaiveBayesClassifier uses GammaDistribution as a method to train continuous data.

See Also