-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to implement Cramer's test in Java? - Cramer - 'ArrayStoreException' #152
Comments
I guess the two samples Cramer test is the Anderson-Darling-Test? |
@pmgj: can you help on this? Thanks! |
Hi, This cramer test works comparing the attribute values of a List of Instance elements. An example that can read values from ARFF files is:
The CramerTest is only used inside the class. I probably had to make it private. This Java implementation was based on the Cramer test source code available in the R statistic tool. |
Thanks a lot. |
Submitting the parameters to the method:
Cramer c = new Cramer();
c.cramerTest1(CR1, CR2);
pi.CremerTValue = ?
fails with the error 'ArrayStoreException' at the second line after passing the parameters.
I tried:
List<List>CR1 = new ArrayList<List>();
List<List>CR2 = new ArrayList<List>();
CR1.add(First);
CR2.add(Second);
--or--
List<List>CR1 = Arrays.asList(First);
List<List>CR2 = Arrays.asList(Second);
Both declarations failed.
First and Second are both of the type ArrayList with a size of 177 items.
CR1 and CR2 have one item that contain 177 values.
How can I implement the two sample Cramer-Mises T test?
The text was updated successfully, but these errors were encountered: