IMSL C# Numerical Library

TableTwoWay.GetFrequencyTableUsingClassmarks Method 

Returns the two-way frequency table using either cutpoints or class marks.

public double[,] GetFrequencyTableUsingClassmarks(
   double[] cx,
   double[] cy
);

Parameters

cx
A double array containing either the cutpoints or the class marks for x.
cy
A double array containing either the cutpoints or the class marks for y.

Return Value

A two dimensional double array containing the two-way frequency table.

Remarks

Cutpoints are boundaries and class marks are the midpoints of xIntervals and yIntervals.

Equally spaced class marks in ascending order must be provided in the arrays cx and cy. The class marks the midpoints of each interval. Each interval is taken to have length cx[1] - cx[0] in the x direction and cy[1] - cy[0] in the y direction. The total number of elements in the output table may be less than the number of observations of input data. Arguments xIntervals and yIntervals must be greater than or equal to 2 for this option.

See Also

TableTwoWay Class | Imsl.Stat Namespace