TableOneWay Class |
Namespace: Imsl.Stat
The TableOneWay type exposes the following members.
Name | Description | |
---|---|---|
TableOneWay |
Constructor for TableOneWay.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetFrequencyTable |
Returns the one-way frequency table.
| |
GetFrequencyTable(Double, Double) |
Returns a one-way frequency table using known bounds.
| |
GetFrequencyTableUsingClassmarks |
Returns the one-way frequency table using class marks.
| |
GetFrequencyTableUsingCutpoints |
Returns the one-way frequency table using cutpoints.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Class TableOneWay calculates a frequency table for a data array.
A one-way frequency table can be used to visualize the shape of the data distribution and look for anomalies in the data. There are many approaches to constructing frequency tables. Four approaches are implemented in this class:
The TableOneWay class implements the first two approaches by overloading the GetFrequencyTable method. If GetFrequencyTable() is used without input arguments, nIntervals of equal length are formed between the minimum and maximum values in the data. The frequency table returned from this method contains tallies of the number of observations in each interval. The data minimum and maximum can be obtained from the Minimum and Maximum properties.
Instead of using the minimum and maximum to define the boundaries of the smallest and largest classes, specified boundaries can be used by calling GetFrequencyTable(lower_bound, upper_bound). This method tallies all data less than or equal to the lower_bound into the first class, and all data greater than or equal to upper_bound into the last class.
The third approach is implemented using the GetFrequencyTableUsingClassmarks method. Equally spaced intervals can be defined using class marks. In this approach a double precision array of length nIntervals containing the class midpoints is passed to the GetFrequencyTableUsingClassmarks(classmarks[]). The class marks, or midpoints, must be equally spaced.
Finally in those applications where unequal length intervals are preferred, the GetFrequencyTableUsingCutpoints(cutpoints[]) method can be used. The double precision array cutpoints has length nIntervals-1 and contains the class boundaries listed in ascending order. The first cut point defines the first class which is used to tally all data less than or equal to the first cut point value. The last cut point defines the last class which is used to tally all data greater than or equal to the last cut point value.