IMSL C# Numerical Library

DiscriminantAnalysis.SetPrior Method 

Sets the prior probabilities for each group.

public void SetPrior(
   double[] prior
);

Parameters

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

Remarks

The elements of prior should sum to 1.0.

If this member function is not called, the elements of prior 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