IMSL C# Numerical Library

DiscriminantAnalysis.GetPrior Method 

Returns the prior probabilities for each group.

public double[] GetPrior();

Return Value

A double vector of length nGroups containing the prior probabilities for each group.

Remarks

The elements of this vector should sum to 1.0.

If this member function is not called, the elements are set so as to be equal if PriorType is set to PriorProbabilities.PriorEqual or they are set to be proportional to the sample size in each group if PriorType is set to PriorProbabilities.PriorProportional.

See Also

DiscriminantAnalysis Class | Imsl.Stat Namespace