WebCab Probability and Statistics for .NET v3.3 Demo

GroupedData.SetMidpoints Method 

Register a new set of midpoints of the grouped data set.

public void SetMidpoints(
   double[] midPoints
);

Parameters

midPoints
The array of doubles where the k-th element is the midpoint of the k-th grouping.

Remarks

Further Explanation

Note that with the grouped data approach we will implicitly assume that the `mean' of the data set elements within a given collection corresponding to an sub-interval of the real line is the midpoint of the interval considered. Though in most cases this will not be precisely true, the midpoint will be approximately equal to the mean of the set of elements within the interval.

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. Then the corresponding mid-points are: 0.60m, 1.25m, 1.75m and 2.50m; which is passed to this method and set to the private field by passing the array {0.60, 1.25, 1.75, 2.50}.

See Also

GroupedData Class | WebCab.Libraries.Statistics.Statistics Namespace