WebCab Probability and Statistics for COM v3.3 Demo

GroupedData.SetFrequencies Method 

Registers the frequencies of the classes of the grouped data.

public void SetFrequencies(
   int[] frequencies
);

Parameters

frequencies
The array of frequencies where the k-th term of the array corresponds to the frequency of the k-th class.

Remarks

The frequencies are passed as a array parameter where the first term of the array corresponds to the frequency of the first class.

Example

If we grouped the data consisting of the heights of a collection of people in accordance with the intervals: 0m - 1.20m, 1.21m - 1.50m, 1.51m - 2.00m, 2.01m - 3m. Where the corresponding number of people in each of these interval's is:

  1. People in the group (i.e. frequency) with a height between 0m - 1.20m is: 5
  2. People in the group (i.e. frequency) with a height between 1.21m - 1.50m is: 25
  3. People in the group (i.e. frequency) with a height between 1.51m - 2.00m is: 30
  4. People in the group (i.e. frequency) with a height between 2.01m - 3.00m is: 3

Therefore, the array which describes the frequencies of the classes is: {5, 25, 30, 3}.

See Also

GroupedData Class | WebCab.COM.Statistics.Statistics Namespace