public class TableTwoWayEx1 extends Object
Computes a two-way table for continuous scale data.
The data for x in this example is from Hinkley (1977) and Belleman and Hoaglin (1981). The measurement (in inches) are for precipitation in Minneapolis/St. Paul during the month of March for 30 consecutive years. The data for y were created by adding small integers to the data in x.
The first test uses the default tally method which may be appropriate when the range of data is unknown. The minimum and maximum data bounds are displayed.
The second test computes the table using known bounds, where the x lower, x upper, y lower, y upper bounds are chosen so that the intervals will be 0 to 1, 1 to 2, and so on for x and 1 to 2, 2 to 3 and so on for y.
In the third test, the class boundaries are input as the same intervals as in the second test. The first element of cmx and cmy specify the first cutpoint between classes.
The fourth test uses the cutpoints tally option with cutpoints such that the intervals are specified as in the previous tests.
Constructor and Description |
---|
TableTwoWayEx1() |
public static void main(String[] args)
Copyright © 2020 Rogue Wave Software. All rights reserved.