Specifies user supplied prior probabilities.
Namespace:
Imsl.Stat
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public void SetPrior( double[] prior ) |
Visual Basic (Declaration) |
---|
Public Sub SetPrior ( _ prior As Double() _ ) |
Visual C++ |
---|
public: void SetPrior( array<double>^ prior ) |
Parameters
- prior
- Type: array<
System..::.Double
>[]()[]
A double array of length nGroups containing the prior probabilities for each group.
Remarks
The elements of prior should sum to 1.0.
If the values of prior are less than 1.0e-20, they will be converted to Math.Log(1.0e-20).
Default: The prior probablities are calculated to be equal, see property PriorType.