[ https://issues.apache.org/jira/browse/MATH-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16860708#comment-16860708 ]
Paweł Lipiński edited comment on MATH-1487 at 6/11/19 9:07 AM: --------------------------------------------------------------- Sure, I downloaded {noformat} commons-math4-4.0-20190530.195425-687-bin.tar.gz{noformat} and I was trying to execute my test case, {code:java} @Test public void asdasd() throws IOException { double[] alpha = readToDoubleArray("alpha.arr"); double[] beta = readToDoubleArray("beta.arr"); KolmogorovSmirnovTest kolmogorovSmirnovTest = new KolmogorovSmirnovTest(); kolmogorovSmirnovTest.kolmogorovSmirnovTest(alpha, beta); } private double[] readToDoubleArray(final String filename) throws IOException { return Files.readAllLines(Paths.get("path", "to", "arrays", filename)) .stream() .mapToDouble(Double::parseDouble) .toArray(); } {code} but I faced an error {noformat} Error:(23, 30) java: cannot access org.apache.commons.statistics.distribution.ContinuousDistribution class file for org.apache.commons.statistics.distribution.ContinuousDistribution not found{noformat} in the pom.xml from that tar.gz, I see plenty of dependencies e.g. {noformat} <groupId>org.apache.commons</groupId> <artifactId>commons-statistics-distribution</artifactId> <version>0.1-SNAPSHOT</version> {noformat} and I'm wondering how can I get those jars (they are not in the maven central). was (Author: lipinski.pawel): Sure, I downloaded {noformat} commons-math4-4.0-20190530.195425-687-bin.tar.gz{noformat} and I was trying to execute my test case, {code:java} @Test public void asdasd() throws IOException { double[] alpha = readToDoubleArray("alpha.arr"); double[] beta = readToDoubleArray("beta.arr"); KolmogorovSmirnovTest kolmogorovSmirnovTest = new KolmogorovSmirnovTest(); kolmogorovSmirnovTest.kolmogorovSmirnovTest(alpha, beta); } private double[] readToDoubleArray(final String filename) throws IOException { return Files.readAllLines(Paths.get("path", "to", "arrays", filename)) .stream() .mapToDouble(Double::parseDouble) .toArray(); } {code} but I faced an error {noformat} Error:(23, 30) java: cannot access org.apache.commons.statistics.distribution.ContinuousDistribution class file for org.apache.commons.statistics.distribution.ContinuousDistribution not found{noformat} in the pom.xml from that tar.gz, I see plenty of dependencies e.g. {noformat} <groupId>org.apache.commons</groupId> <artifactId>commons-statistics-distribution</artifactId> <version>0.1-SNAPSHOT</version> {noformat} and I'm wondering how can I get those jars (they are not in the maven central). > MathInternalError - Kolmogorov Smirnov Test > ------------------------------------------- > > Key: MATH-1487 > URL: https://issues.apache.org/jira/browse/MATH-1487 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.6.1 > Reporter: Paweł Lipiński > Priority: Critical > Attachments: alpha.arr, beta.arr > > > Hi, > I spotted a pesky bug in KolmogorovSmirnovTest class, in the method > kolmogorovSmirnovTest. > In order to reproduce the error use arrays from attachments. > Stacktrace: > {noformat} > org.apache.commons.math3.exception.MathInternalError: illegal state: internal > error, please fill a bug report at https://issues.apache.org/jira/browse/MATH > at > org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest.fixTies(KolmogorovSmirnovTest.java:1171) > at > org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest.kolmogorovSmirnovTest(KolmogorovSmirnovTest.java:263) > at > org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest.kolmogorovSmirnovTest(KolmogorovSmirnovTest.java:290) > {noformat} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)