Click or drag to resize

Hypergeometric Class

Discrete Univariate Hypergeometric distribution. This distribution is a discrete probability distribution that describes the number of successes in a sequence of n draws from a finite population without replacement, just as the binomial distribution describes the number of successes for draws with replacement Wikipedia - Hypergeometric distribution.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.DistributionsHypergeometric

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class Hypergeometric : IDiscreteDistribution, 
	IUnivariateDistribution, IDistribution

The Hypergeometric type exposes the following members.

Constructors
 NameDescription
Public methodHypergeometric(Int32, Int32, Int32) Initializes a new instance of the Hypergeometric class.
Public methodHypergeometric(Int32, Int32, Int32, Random) Initializes a new instance of the Hypergeometric class.
Top
Properties
 NameDescription
Public propertyDraws Gets the number of draws without replacement (n).
Public propertyEntropy Gets the entropy of the distribution.
Public propertyMaximum Gets the maximum of the distribution.
Public propertyMean Gets the mean of the distribution.
Public propertyMedian Gets the median of the distribution.
Public propertyMinimum Gets the minimum of the distribution.
Public propertyMode Gets the mode of the distribution.
Public propertyPopulation Gets the size of the population (N).
Public propertyRandomSource Gets or sets the random number generator which is used to draw random samples.
Public propertySkewness Gets the skewness of the distribution.
Public propertyStdDev Gets the standard deviation of the distribution.
Public propertySuccess Gets the number successes within the population (K, M).
Public propertyVariance Gets the variance of the distribution.
Top
Methods
 NameDescription
Public methodStatic memberCDF Computes the cumulative distribution (CDF) of the distribution at x, i.e. P(X ≤ x).
Public methodCumulativeDistribution Computes the cumulative distribution (CDF) of the distribution at x, i.e. P(X ≤ x).
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsValidParameterSet Tests whether the provided values are valid parameters for this distribution.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberPMF Computes the probability mass (PMF) at k, i.e. P(X = k).
Public methodStatic memberPMFLn Computes the log probability mass (lnPMF) at k, i.e. ln(P(X = k)).
Public methodProbability Computes the probability mass (PMF) at k, i.e. P(X = k).
Public methodProbabilityLn Computes the log probability mass (lnPMF) at k, i.e. ln(P(X = k)).
Public methodSample Samples a Hypergeometric distributed random variable.
Public methodStatic memberSample(Int32, Int32, Int32) Samples a random variable.
Public methodStatic memberSample(Random, Int32, Int32, Int32) Samples a random variable.
Public methodSamples Samples an array of Hypergeometric distributed random variables.
Public methodSamples(Int32) Fills an array with samples generated from the distribution.
Public methodStatic memberSamples(Int32, Int32, Int32) Samples a sequence of this random variable.
Public methodStatic memberSamples(Int32, Int32, Int32, Int32) Fills an array with samples generated from the distribution.
Public methodStatic memberSamples(Random, Int32, Int32, Int32) Samples a sequence of this random variable.
Public methodStatic memberSamples(Random, Int32, Int32, Int32, Int32) Fills an array with samples generated from the distribution.
Public methodToString Returns a String that represents this instance.
(Overrides ObjectToString)
Top
See Also