WebCab Probability and Statistics for .NET v3.3 Demo

Probability.GetProbability Method ()

Returns an array where the k-th term corresponds to the value of the set probability measure on the k-th event.

public double[] GetProbability();

Remarks

Recall that the probability measure has already been set using the methods (int[], double[]) or SetProbability.

Example

If we set the probability of the occurrence of four events to be: 0.25, 0.20, 0.30, 0.25, set using one (or both) of the methods (int[], double[]) or SetProbability. Then by calling this method will return an array of doubles containing the probabilities of the four events, namely: {0.25, 0.30, 0.30, 0.25}.

See Also

Probability Class | WebCab.Libraries.Statistics.DiscretePrb Namespace | Probability.GetProbability Overload List | Sets the probability measure when the frequency of each event is known. | Sets the probability measure when the frequency of each event is known. | Gets the reference numbers used to identify the events.