[jira] [Commented] (MATH-1487) MathInternalError - Kolmogorov Smirnov Test
[ https://issues.apache.org/jira/browse/MATH-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17416624#comment-17416624 ] Maciej Kwidziński commented on MATH-1487: - I also cannot reproduce it on {{commons-math3:3.6.1}} > 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 (v8.3.4#803005)
[jira] [Commented] (MATH-1487) MathInternalError - Kolmogorov Smirnov Test
[ https://issues.apache.org/jira/browse/MATH-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17017882#comment-17017882 ] Chen Tao commented on MATH-1487: I can not reproduce this bug both in 3.6.1 and development version, by this code: @Testpublic void testCase() 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(); } More information should be provide. > 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 (v8.3.4#803005)
[jira] [Commented] (MATH-1487) MathInternalError - Kolmogorov Smirnov Test
[ https://issues.apache.org/jira/browse/MATH-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16960565#comment-16960565 ] Gilles Sadowski commented on MATH-1487: --- Is the problem still present? > 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 (v8.3.4#803005)
[jira] [Commented] (MATH-1487) MathInternalError - Kolmogorov Smirnov Test
[ https://issues.apache.org/jira/browse/MATH-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16860928#comment-16860928 ] Gilles commented on MATH-1487: -- bq. I'm wondering how can I get those jars (they are not in the maven central). They are also available from the ["nightly build"/snapshot repository|https://repository.apache.org/content/repositories/snapshots/org/apache/commons/]. We try to get to a first release of the new dependencies (["Commons Numbers"|http://commons.apache.org/proper/commons-numbers/] and ["Commons Statistics"|http://commons.apache.org/proper/commons-statistics/])... Please subscribe to the "dev" mailing list if you'd like to help. ;-) However, the easiest option may be to check out the source ([git "master" branch|https://gitbox.apache.org/repos/asf?p=commons-math.git]), copy the unit test in the appropriate sub-directory of {{src/test}}, and then run {noformat} $ mvn test {noformat} > 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)
[jira] [Commented] (MATH-1487) MathInternalError - Kolmogorov Smirnov Test
[ https://issues.apache.org/jira/browse/MATH-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16860708#comment-16860708 ] Paweł Lipiński commented on MATH-1487: -- 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} org.apache.commons commons-statistics-distribution 0.1-SNAPSHOT {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)
[jira] [Commented] (MATH-1487) MathInternalError - Kolmogorov Smirnov Test
[ https://issues.apache.org/jira/browse/MATH-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16859938#comment-16859938 ] Gilles commented on MATH-1487: -- Thanks for the report, but please check that the bug is still present in the [development version of the library|https://gitbox.apache.org/repos/asf?p=commons-math.git] (you can find the latest snapshots [here|https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-math4/4.0-SNAPSHOT/]). > 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)