[jira] [Resolved] (MATH-1475) KS test throw MathInternalError: illegal state

2019-04-05 Thread Chao Xue (JIRA)


 [ 
https://issues.apache.org/jira/browse/MATH-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chao Xue resolved MATH-1475.

   Resolution: Fixed
Fix Version/s: 4.0

> KS test throw MathInternalError: illegal state
> --
>
> Key: MATH-1475
> URL: https://issues.apache.org/jira/browse/MATH-1475
> Project: Commons Math
>  Issue Type: Bug
>Affects Versions: 3.6.1
> Environment: Windows 10 (Professional)
> JDK 8
>Reporter: Chao Xue
>Priority: Critical
> Fix For: 4.0
>
> Attachments: Figure_1.png
>
>
> {code:java}
> public class CC {
> public static void main(String []args) throws Exception{
> double[]x=new double[]{0.12350159883499146, -0.2601194679737091, 
> -1.322849988937378, 0.379696249961853, 0.3987586498260498, 
> -0.06924121081829071, -0.13951236009597778, 0.3213207423686981, 
> 0.7949811816215515, -0.15811105072498322, 0.19912190735340118, 
> -0.46363770961761475, -0.20019817352294922, 0.3062838613986969, 
> -0.3872813880443573, 0.10733723640441895, 0.10910066962242126, 
> 0.625770092010498, 0.2824835777282715, 0.3107619881629944, 
> 0.1432388722896576, -0.08056988567113876, -0.5816712379455566, 
> -0.09488576650619507, -0.2154506891965866, 0.2509046196937561, 
> -0.06600788980722427, -0.01133995596319437, -0.22642627358436584, 
> -0.12150175869464874, -0.21109570562839508, -0.17732949554920197, 
> -0.2769380807876587, -0.3607368767261505, -0.07842907309532166, 
> -0.2518743574619293, 0.035517483949661255, -0.6556509137153625, 
> -0.360045850276947, -0.09371964633464813, -0.7284095883369446, 
> -0.22719840705394745, -1.5540679693222046, -0.008972732350230217, 
> -0.09106933325529099, -0.6465389132499695, 0.036245591938495636, 
> 0.657580554485321, 0.32453101873397827, 0.6105462908744812, 
> 0.25256943702697754, -0.194427490234375, 0.6238796710968018, 
> 0.52035855, -0.2708645761013031, 0.07761227339506149, 
> 0.5315862894058228, 0.44320303201675415, 0.6283767819404602, 
> 0.2618369162082672, 0.47253096103668213, 0.3889777660369873, 
> 0.6856100559234619, 0.3007083833217621, 0.4963226914405823, 
> 0.08229698985815048, 0.6170856952667236, 0.7501978874206543, 
> 0.5744063258171082, 0.5233180522918701, 0.32654184103012085, 
> 0.3014495372772217, 0.4082445800304413, -0.1075737327337265, 
> -0.018864337354898453, 0.34642550349235535, 0.6414541602134705, 
> 0.16678297519683838, 0.46028634905815125, 0.4151197075843811, 
> 0.14407725632190704, 0.41751566529273987, -0.054958608001470566, 
> 0.4995657801628113, 0.4485369324684143, 0.5600396990776062, 
> 0.4098612368106842, 0.2748555839061737, 0.2562614381313324, 
> 0.4324824810028076};
> double[]y=new double[]{2.6881366763426717, 2.685469965655465, 
> 2.261888917462379, -2.1933598759641226, -2.4279488152810145, 
> -3.159389495849609, -2.3150004548153444, 2.468029206047388, 
> 2.9442494682288953, 2.653360013462529, -2.1189940659194835, 
> -2.121635289903703, -2.103092459792032, -2.737034221468073, 
> -2.203389332350286, 2.1985949039005512, -2.5021604073154737, 
> 2.2732754920764533, -2.3867025598454346, 2.135919387338413, 
> 2.338120776050672, 2.2579794509726874, 2.083329059799027, -2.209733724709957, 
> 2.297192240399189, -2.201703830825843, -3.460208691996806, 2.428839296615834, 
> -3.2944259224581574, 2.0654875493620883, -2.743948930837782, 
> -2.2240674680805212, -3.646366778182357, -2.12513198437294, 
> 2.979166188824589, -2.6275491570089033, -2.3818176136461338, 
> 2.882096356968376, -2.2147229261558334, -3.159389495849609, 
> 2.312428759406432, 2.3313864098846477, -2.72802504046371, 
> -2.4216068225364245, 3.0119599306499123, 2.5753099009496783, 
> -2.9200121783556843, -2.519352725437922, -4.133932580227538, 
> -2.30496316762808, 2.5381353678521363, 2.4818233632136697, 
> 2.5277451177925685, -2.166465445816232, -2.1193897819471563, 
> -2.109654332722425, 3.260211545834851, -3.9527673876059013, 
> -2.199885089466947, 2.152573429747697, -3.1593894958496094, 
> 2.5479522823226795, 3.342810742466116, -2.8197184957304007, 
> -2.3407900299253765, -2.3303967152728537, 2.1760131201015565, 
> 2.143930552944634, 2.6231754409, 2.9126278362420575, -2.121169134387265, 
> -2.2980208408109095, -2.285400411434817, -2.0742764640932903, 
> 2.304178664095016, -2.2893825538911634, -3.7714771984158806, 
> -2.7153698816026886, 2.8995011276220226, -2.158787087333056, 
> -2.1045987952052547, 2.8478762016468147, -2.694578565956955, 
> -2.696014432856399, -2.3190122657403496, -2.48225194403028, 
> 3.3393947563371764, 2.7775468034263517, -3.396526561479875, 
> -2.699967947404961};
> KolmogorovSmirnovTest kst=new KolmogorovSmirnovTest();
> double p=kst.kolmogorovSmirnovTest(x, y);
> System.out.println(p);
> }
> }
> {code}
> Results:
> run:
> Exception in thread "main" 
> org.apache.commons.math3.exception.MathInternalError: illegal state: internal 
> error,

[jira] [Comment Edited] (MATH-1475) KS test throw MathInternalError: illegal state

2019-04-05 Thread Chao Xue (JIRA)


[ 
https://issues.apache.org/jira/browse/MATH-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16811393#comment-16811393
 ] 

Chao Xue edited comment on MATH-1475 at 4/6/19 2:00 AM:


I used the snaphot in [github|[https://github.com/jcastro-inf/commons-math4]].

The problem was solved when I used the snaphot you provide. Thank you! 


was (Author: xuech):
I used the snaphot in 
[github|[https://github.com/jcastro-inf/commons-math4|https://github.com/jcastro-inf/commons-math4].]].
 

> KS test throw MathInternalError: illegal state
> --
>
> Key: MATH-1475
> URL: https://issues.apache.org/jira/browse/MATH-1475
> Project: Commons Math
>  Issue Type: Bug
>Affects Versions: 3.6.1
> Environment: Windows 10 (Professional)
> JDK 8
>Reporter: Chao Xue
>Priority: Critical
> Attachments: Figure_1.png
>
>
> {code:java}
> public class CC {
> public static void main(String []args) throws Exception{
> double[]x=new double[]{0.12350159883499146, -0.2601194679737091, 
> -1.322849988937378, 0.379696249961853, 0.3987586498260498, 
> -0.06924121081829071, -0.13951236009597778, 0.3213207423686981, 
> 0.7949811816215515, -0.15811105072498322, 0.19912190735340118, 
> -0.46363770961761475, -0.20019817352294922, 0.3062838613986969, 
> -0.3872813880443573, 0.10733723640441895, 0.10910066962242126, 
> 0.625770092010498, 0.2824835777282715, 0.3107619881629944, 
> 0.1432388722896576, -0.08056988567113876, -0.5816712379455566, 
> -0.09488576650619507, -0.2154506891965866, 0.2509046196937561, 
> -0.06600788980722427, -0.01133995596319437, -0.22642627358436584, 
> -0.12150175869464874, -0.21109570562839508, -0.17732949554920197, 
> -0.2769380807876587, -0.3607368767261505, -0.07842907309532166, 
> -0.2518743574619293, 0.035517483949661255, -0.6556509137153625, 
> -0.360045850276947, -0.09371964633464813, -0.7284095883369446, 
> -0.22719840705394745, -1.5540679693222046, -0.008972732350230217, 
> -0.09106933325529099, -0.6465389132499695, 0.036245591938495636, 
> 0.657580554485321, 0.32453101873397827, 0.6105462908744812, 
> 0.25256943702697754, -0.194427490234375, 0.6238796710968018, 
> 0.52035855, -0.2708645761013031, 0.07761227339506149, 
> 0.5315862894058228, 0.44320303201675415, 0.6283767819404602, 
> 0.2618369162082672, 0.47253096103668213, 0.3889777660369873, 
> 0.6856100559234619, 0.3007083833217621, 0.4963226914405823, 
> 0.08229698985815048, 0.6170856952667236, 0.7501978874206543, 
> 0.5744063258171082, 0.5233180522918701, 0.32654184103012085, 
> 0.3014495372772217, 0.4082445800304413, -0.1075737327337265, 
> -0.018864337354898453, 0.34642550349235535, 0.6414541602134705, 
> 0.16678297519683838, 0.46028634905815125, 0.4151197075843811, 
> 0.14407725632190704, 0.41751566529273987, -0.054958608001470566, 
> 0.4995657801628113, 0.4485369324684143, 0.5600396990776062, 
> 0.4098612368106842, 0.2748555839061737, 0.2562614381313324, 
> 0.4324824810028076};
> double[]y=new double[]{2.6881366763426717, 2.685469965655465, 
> 2.261888917462379, -2.1933598759641226, -2.4279488152810145, 
> -3.159389495849609, -2.3150004548153444, 2.468029206047388, 
> 2.9442494682288953, 2.653360013462529, -2.1189940659194835, 
> -2.121635289903703, -2.103092459792032, -2.737034221468073, 
> -2.203389332350286, 2.1985949039005512, -2.5021604073154737, 
> 2.2732754920764533, -2.3867025598454346, 2.135919387338413, 
> 2.338120776050672, 2.2579794509726874, 2.083329059799027, -2.209733724709957, 
> 2.297192240399189, -2.201703830825843, -3.460208691996806, 2.428839296615834, 
> -3.2944259224581574, 2.0654875493620883, -2.743948930837782, 
> -2.2240674680805212, -3.646366778182357, -2.12513198437294, 
> 2.979166188824589, -2.6275491570089033, -2.3818176136461338, 
> 2.882096356968376, -2.2147229261558334, -3.159389495849609, 
> 2.312428759406432, 2.3313864098846477, -2.72802504046371, 
> -2.4216068225364245, 3.0119599306499123, 2.5753099009496783, 
> -2.9200121783556843, -2.519352725437922, -4.133932580227538, 
> -2.30496316762808, 2.5381353678521363, 2.4818233632136697, 
> 2.5277451177925685, -2.166465445816232, -2.1193897819471563, 
> -2.109654332722425, 3.260211545834851, -3.9527673876059013, 
> -2.199885089466947, 2.152573429747697, -3.1593894958496094, 
> 2.5479522823226795, 3.342810742466116, -2.8197184957304007, 
> -2.3407900299253765, -2.3303967152728537, 2.1760131201015565, 
> 2.143930552944634, 2.6231754409, 2.9126278362420575, -2.121169134387265, 
> -2.2980208408109095, -2.285400411434817, -2.0742764640932903, 
> 2.304178664095016, -2.2893825538911634, -3.7714771984158806, 
> -2.7153698816026886, 2.8995011276220226, -2.158787087333056, 
> -2.1045987952052547, 2.8478762016468147, -2.694578565956955, 
> -2.696014432856399, -2.3190122657403496, -2.48225194403028, 
> 3.3393947563371764, 2.777546803426

[jira] [Commented] (MATH-1475) KS test throw MathInternalError: illegal state

2019-04-05 Thread Chao Xue (JIRA)


[ 
https://issues.apache.org/jira/browse/MATH-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16811393#comment-16811393
 ] 

Chao Xue commented on MATH-1475:


I used the snaphot in 
[github|[https://github.com/jcastro-inf/commons-math4|https://github.com/jcastro-inf/commons-math4].]].
 

> KS test throw MathInternalError: illegal state
> --
>
> Key: MATH-1475
> URL: https://issues.apache.org/jira/browse/MATH-1475
> Project: Commons Math
>  Issue Type: Bug
>Affects Versions: 3.6.1
> Environment: Windows 10 (Professional)
> JDK 8
>Reporter: Chao Xue
>Priority: Critical
> Attachments: Figure_1.png
>
>
> {code:java}
> public class CC {
> public static void main(String []args) throws Exception{
> double[]x=new double[]{0.12350159883499146, -0.2601194679737091, 
> -1.322849988937378, 0.379696249961853, 0.3987586498260498, 
> -0.06924121081829071, -0.13951236009597778, 0.3213207423686981, 
> 0.7949811816215515, -0.15811105072498322, 0.19912190735340118, 
> -0.46363770961761475, -0.20019817352294922, 0.3062838613986969, 
> -0.3872813880443573, 0.10733723640441895, 0.10910066962242126, 
> 0.625770092010498, 0.2824835777282715, 0.3107619881629944, 
> 0.1432388722896576, -0.08056988567113876, -0.5816712379455566, 
> -0.09488576650619507, -0.2154506891965866, 0.2509046196937561, 
> -0.06600788980722427, -0.01133995596319437, -0.22642627358436584, 
> -0.12150175869464874, -0.21109570562839508, -0.17732949554920197, 
> -0.2769380807876587, -0.3607368767261505, -0.07842907309532166, 
> -0.2518743574619293, 0.035517483949661255, -0.6556509137153625, 
> -0.360045850276947, -0.09371964633464813, -0.7284095883369446, 
> -0.22719840705394745, -1.5540679693222046, -0.008972732350230217, 
> -0.09106933325529099, -0.6465389132499695, 0.036245591938495636, 
> 0.657580554485321, 0.32453101873397827, 0.6105462908744812, 
> 0.25256943702697754, -0.194427490234375, 0.6238796710968018, 
> 0.52035855, -0.2708645761013031, 0.07761227339506149, 
> 0.5315862894058228, 0.44320303201675415, 0.6283767819404602, 
> 0.2618369162082672, 0.47253096103668213, 0.3889777660369873, 
> 0.6856100559234619, 0.3007083833217621, 0.4963226914405823, 
> 0.08229698985815048, 0.6170856952667236, 0.7501978874206543, 
> 0.5744063258171082, 0.5233180522918701, 0.32654184103012085, 
> 0.3014495372772217, 0.4082445800304413, -0.1075737327337265, 
> -0.018864337354898453, 0.34642550349235535, 0.6414541602134705, 
> 0.16678297519683838, 0.46028634905815125, 0.4151197075843811, 
> 0.14407725632190704, 0.41751566529273987, -0.054958608001470566, 
> 0.4995657801628113, 0.4485369324684143, 0.5600396990776062, 
> 0.4098612368106842, 0.2748555839061737, 0.2562614381313324, 
> 0.4324824810028076};
> double[]y=new double[]{2.6881366763426717, 2.685469965655465, 
> 2.261888917462379, -2.1933598759641226, -2.4279488152810145, 
> -3.159389495849609, -2.3150004548153444, 2.468029206047388, 
> 2.9442494682288953, 2.653360013462529, -2.1189940659194835, 
> -2.121635289903703, -2.103092459792032, -2.737034221468073, 
> -2.203389332350286, 2.1985949039005512, -2.5021604073154737, 
> 2.2732754920764533, -2.3867025598454346, 2.135919387338413, 
> 2.338120776050672, 2.2579794509726874, 2.083329059799027, -2.209733724709957, 
> 2.297192240399189, -2.201703830825843, -3.460208691996806, 2.428839296615834, 
> -3.2944259224581574, 2.0654875493620883, -2.743948930837782, 
> -2.2240674680805212, -3.646366778182357, -2.12513198437294, 
> 2.979166188824589, -2.6275491570089033, -2.3818176136461338, 
> 2.882096356968376, -2.2147229261558334, -3.159389495849609, 
> 2.312428759406432, 2.3313864098846477, -2.72802504046371, 
> -2.4216068225364245, 3.0119599306499123, 2.5753099009496783, 
> -2.9200121783556843, -2.519352725437922, -4.133932580227538, 
> -2.30496316762808, 2.5381353678521363, 2.4818233632136697, 
> 2.5277451177925685, -2.166465445816232, -2.1193897819471563, 
> -2.109654332722425, 3.260211545834851, -3.9527673876059013, 
> -2.199885089466947, 2.152573429747697, -3.1593894958496094, 
> 2.5479522823226795, 3.342810742466116, -2.8197184957304007, 
> -2.3407900299253765, -2.3303967152728537, 2.1760131201015565, 
> 2.143930552944634, 2.6231754409, 2.9126278362420575, -2.121169134387265, 
> -2.2980208408109095, -2.285400411434817, -2.0742764640932903, 
> 2.304178664095016, -2.2893825538911634, -3.7714771984158806, 
> -2.7153698816026886, 2.8995011276220226, -2.158787087333056, 
> -2.1045987952052547, 2.8478762016468147, -2.694578565956955, 
> -2.696014432856399, -2.3190122657403496, -2.48225194403028, 
> 3.3393947563371764, 2.7775468034263517, -3.396526561479875, 
> -2.699967947404961};
> KolmogorovSmirnovTest kst=new KolmogorovSmirnovTest();
> double p=kst.kolmogorovSmirnovTest(x, y);
> System.out.println(p);
> }
> }
> {code}
> Results:
> run:
> Exception

[jira] [Commented] (MATH-1475) KS test throw MathInternalError: illegal state

2019-04-04 Thread Chao Xue (JIRA)


[ 
https://issues.apache.org/jira/browse/MATH-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810534#comment-16810534
 ] 

Chao Xue commented on MATH-1475:


It fails too when I used the development version (4.0-SNAPSHOT)  with the same 
Exception.

> KS test throw MathInternalError: illegal state
> --
>
> Key: MATH-1475
> URL: https://issues.apache.org/jira/browse/MATH-1475
> Project: Commons Math
>  Issue Type: Bug
>Affects Versions: 3.6.1
> Environment: Windows 10 (Professional)
> JDK 8
>Reporter: Chao Xue
>Priority: Critical
> Attachments: Figure_1.png
>
>
> {code:java}
> public class CC {
> public static void main(String []args) throws Exception{
> double[]x=new double[]{0.12350159883499146, -0.2601194679737091, 
> -1.322849988937378, 0.379696249961853, 0.3987586498260498, 
> -0.06924121081829071, -0.13951236009597778, 0.3213207423686981, 
> 0.7949811816215515, -0.15811105072498322, 0.19912190735340118, 
> -0.46363770961761475, -0.20019817352294922, 0.3062838613986969, 
> -0.3872813880443573, 0.10733723640441895, 0.10910066962242126, 
> 0.625770092010498, 0.2824835777282715, 0.3107619881629944, 
> 0.1432388722896576, -0.08056988567113876, -0.5816712379455566, 
> -0.09488576650619507, -0.2154506891965866, 0.2509046196937561, 
> -0.06600788980722427, -0.01133995596319437, -0.22642627358436584, 
> -0.12150175869464874, -0.21109570562839508, -0.17732949554920197, 
> -0.2769380807876587, -0.3607368767261505, -0.07842907309532166, 
> -0.2518743574619293, 0.035517483949661255, -0.6556509137153625, 
> -0.360045850276947, -0.09371964633464813, -0.7284095883369446, 
> -0.22719840705394745, -1.5540679693222046, -0.008972732350230217, 
> -0.09106933325529099, -0.6465389132499695, 0.036245591938495636, 
> 0.657580554485321, 0.32453101873397827, 0.6105462908744812, 
> 0.25256943702697754, -0.194427490234375, 0.6238796710968018, 
> 0.52035855, -0.2708645761013031, 0.07761227339506149, 
> 0.5315862894058228, 0.44320303201675415, 0.6283767819404602, 
> 0.2618369162082672, 0.47253096103668213, 0.3889777660369873, 
> 0.6856100559234619, 0.3007083833217621, 0.4963226914405823, 
> 0.08229698985815048, 0.6170856952667236, 0.7501978874206543, 
> 0.5744063258171082, 0.5233180522918701, 0.32654184103012085, 
> 0.3014495372772217, 0.4082445800304413, -0.1075737327337265, 
> -0.018864337354898453, 0.34642550349235535, 0.6414541602134705, 
> 0.16678297519683838, 0.46028634905815125, 0.4151197075843811, 
> 0.14407725632190704, 0.41751566529273987, -0.054958608001470566, 
> 0.4995657801628113, 0.4485369324684143, 0.5600396990776062, 
> 0.4098612368106842, 0.2748555839061737, 0.2562614381313324, 
> 0.4324824810028076};
> double[]y=new double[]{2.6881366763426717, 2.685469965655465, 
> 2.261888917462379, -2.1933598759641226, -2.4279488152810145, 
> -3.159389495849609, -2.3150004548153444, 2.468029206047388, 
> 2.9442494682288953, 2.653360013462529, -2.1189940659194835, 
> -2.121635289903703, -2.103092459792032, -2.737034221468073, 
> -2.203389332350286, 2.1985949039005512, -2.5021604073154737, 
> 2.2732754920764533, -2.3867025598454346, 2.135919387338413, 
> 2.338120776050672, 2.2579794509726874, 2.083329059799027, -2.209733724709957, 
> 2.297192240399189, -2.201703830825843, -3.460208691996806, 2.428839296615834, 
> -3.2944259224581574, 2.0654875493620883, -2.743948930837782, 
> -2.2240674680805212, -3.646366778182357, -2.12513198437294, 
> 2.979166188824589, -2.6275491570089033, -2.3818176136461338, 
> 2.882096356968376, -2.2147229261558334, -3.159389495849609, 
> 2.312428759406432, 2.3313864098846477, -2.72802504046371, 
> -2.4216068225364245, 3.0119599306499123, 2.5753099009496783, 
> -2.9200121783556843, -2.519352725437922, -4.133932580227538, 
> -2.30496316762808, 2.5381353678521363, 2.4818233632136697, 
> 2.5277451177925685, -2.166465445816232, -2.1193897819471563, 
> -2.109654332722425, 3.260211545834851, -3.9527673876059013, 
> -2.199885089466947, 2.152573429747697, -3.1593894958496094, 
> 2.5479522823226795, 3.342810742466116, -2.8197184957304007, 
> -2.3407900299253765, -2.3303967152728537, 2.1760131201015565, 
> 2.143930552944634, 2.6231754409, 2.9126278362420575, -2.121169134387265, 
> -2.2980208408109095, -2.285400411434817, -2.0742764640932903, 
> 2.304178664095016, -2.2893825538911634, -3.7714771984158806, 
> -2.7153698816026886, 2.8995011276220226, -2.158787087333056, 
> -2.1045987952052547, 2.8478762016468147, -2.694578565956955, 
> -2.696014432856399, -2.3190122657403496, -2.48225194403028, 
> 3.3393947563371764, 2.7775468034263517, -3.396526561479875, 
> -2.699967947404961};
> KolmogorovSmirnovTest kst=new KolmogorovSmirnovTest();
> double p=kst.kolmogorovSmirnovTest(x, y);
> System.out.println(p);
> }
> }
> {code}
> Results:
> run:
> Exception in thread "main" 
> org.apache.common

[jira] [Commented] (MATH-1475) KS test throw MathInternalError: illegal state

2019-04-04 Thread Chao Xue (JIRA)


[ 
https://issues.apache.org/jira/browse/MATH-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810533#comment-16810533
 ] 

Chao Xue commented on MATH-1475:


It fails too when I used the development version (4.0-SNAPSHOT)  with the same 
Exception.

> KS test throw MathInternalError: illegal state
> --
>
> Key: MATH-1475
> URL: https://issues.apache.org/jira/browse/MATH-1475
> Project: Commons Math
>  Issue Type: Bug
>Affects Versions: 3.6.1
> Environment: Windows 10 (Professional)
> JDK 8
>Reporter: Chao Xue
>Priority: Critical
> Attachments: Figure_1.png
>
>
> {code:java}
> public class CC {
> public static void main(String []args) throws Exception{
> double[]x=new double[]{0.12350159883499146, -0.2601194679737091, 
> -1.322849988937378, 0.379696249961853, 0.3987586498260498, 
> -0.06924121081829071, -0.13951236009597778, 0.3213207423686981, 
> 0.7949811816215515, -0.15811105072498322, 0.19912190735340118, 
> -0.46363770961761475, -0.20019817352294922, 0.3062838613986969, 
> -0.3872813880443573, 0.10733723640441895, 0.10910066962242126, 
> 0.625770092010498, 0.2824835777282715, 0.3107619881629944, 
> 0.1432388722896576, -0.08056988567113876, -0.5816712379455566, 
> -0.09488576650619507, -0.2154506891965866, 0.2509046196937561, 
> -0.06600788980722427, -0.01133995596319437, -0.22642627358436584, 
> -0.12150175869464874, -0.21109570562839508, -0.17732949554920197, 
> -0.2769380807876587, -0.3607368767261505, -0.07842907309532166, 
> -0.2518743574619293, 0.035517483949661255, -0.6556509137153625, 
> -0.360045850276947, -0.09371964633464813, -0.7284095883369446, 
> -0.22719840705394745, -1.5540679693222046, -0.008972732350230217, 
> -0.09106933325529099, -0.6465389132499695, 0.036245591938495636, 
> 0.657580554485321, 0.32453101873397827, 0.6105462908744812, 
> 0.25256943702697754, -0.194427490234375, 0.6238796710968018, 
> 0.52035855, -0.2708645761013031, 0.07761227339506149, 
> 0.5315862894058228, 0.44320303201675415, 0.6283767819404602, 
> 0.2618369162082672, 0.47253096103668213, 0.3889777660369873, 
> 0.6856100559234619, 0.3007083833217621, 0.4963226914405823, 
> 0.08229698985815048, 0.6170856952667236, 0.7501978874206543, 
> 0.5744063258171082, 0.5233180522918701, 0.32654184103012085, 
> 0.3014495372772217, 0.4082445800304413, -0.1075737327337265, 
> -0.018864337354898453, 0.34642550349235535, 0.6414541602134705, 
> 0.16678297519683838, 0.46028634905815125, 0.4151197075843811, 
> 0.14407725632190704, 0.41751566529273987, -0.054958608001470566, 
> 0.4995657801628113, 0.4485369324684143, 0.5600396990776062, 
> 0.4098612368106842, 0.2748555839061737, 0.2562614381313324, 
> 0.4324824810028076};
> double[]y=new double[]{2.6881366763426717, 2.685469965655465, 
> 2.261888917462379, -2.1933598759641226, -2.4279488152810145, 
> -3.159389495849609, -2.3150004548153444, 2.468029206047388, 
> 2.9442494682288953, 2.653360013462529, -2.1189940659194835, 
> -2.121635289903703, -2.103092459792032, -2.737034221468073, 
> -2.203389332350286, 2.1985949039005512, -2.5021604073154737, 
> 2.2732754920764533, -2.3867025598454346, 2.135919387338413, 
> 2.338120776050672, 2.2579794509726874, 2.083329059799027, -2.209733724709957, 
> 2.297192240399189, -2.201703830825843, -3.460208691996806, 2.428839296615834, 
> -3.2944259224581574, 2.0654875493620883, -2.743948930837782, 
> -2.2240674680805212, -3.646366778182357, -2.12513198437294, 
> 2.979166188824589, -2.6275491570089033, -2.3818176136461338, 
> 2.882096356968376, -2.2147229261558334, -3.159389495849609, 
> 2.312428759406432, 2.3313864098846477, -2.72802504046371, 
> -2.4216068225364245, 3.0119599306499123, 2.5753099009496783, 
> -2.9200121783556843, -2.519352725437922, -4.133932580227538, 
> -2.30496316762808, 2.5381353678521363, 2.4818233632136697, 
> 2.5277451177925685, -2.166465445816232, -2.1193897819471563, 
> -2.109654332722425, 3.260211545834851, -3.9527673876059013, 
> -2.199885089466947, 2.152573429747697, -3.1593894958496094, 
> 2.5479522823226795, 3.342810742466116, -2.8197184957304007, 
> -2.3407900299253765, -2.3303967152728537, 2.1760131201015565, 
> 2.143930552944634, 2.6231754409, 2.9126278362420575, -2.121169134387265, 
> -2.2980208408109095, -2.285400411434817, -2.0742764640932903, 
> 2.304178664095016, -2.2893825538911634, -3.7714771984158806, 
> -2.7153698816026886, 2.8995011276220226, -2.158787087333056, 
> -2.1045987952052547, 2.8478762016468147, -2.694578565956955, 
> -2.696014432856399, -2.3190122657403496, -2.48225194403028, 
> 3.3393947563371764, 2.7775468034263517, -3.396526561479875, 
> -2.699967947404961};
> KolmogorovSmirnovTest kst=new KolmogorovSmirnovTest();
> double p=kst.kolmogorovSmirnovTest(x, y);
> System.out.println(p);
> }
> }
> {code}
> Results:
> run:
> Exception in thread "main" 
> org.apache.common

[jira] [Updated] (MATH-1475) KS test throw MathInternalError: illegal state

2019-04-04 Thread Chao Xue (JIRA)


 [ 
https://issues.apache.org/jira/browse/MATH-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chao Xue updated MATH-1475:
---
  Docs Text:   (was: public class CC {
public static void main(String []args) throws Exception{
double[]x=new double[]{0.12350159883499146, -0.2601194679737091, 
-1.322849988937378, 0.379696249961853, 0.3987586498260498, 
-0.06924121081829071, -0.13951236009597778, 0.3213207423686981, 
0.7949811816215515, -0.15811105072498322, 0.19912190735340118, 
-0.46363770961761475, -0.20019817352294922, 0.3062838613986969, 
-0.3872813880443573, 0.10733723640441895, 0.10910066962242126, 
0.625770092010498, 0.2824835777282715, 0.3107619881629944, 0.1432388722896576, 
-0.08056988567113876, -0.5816712379455566, -0.09488576650619507, 
-0.2154506891965866, 0.2509046196937561, -0.06600788980722427, 
-0.01133995596319437, -0.22642627358436584, -0.12150175869464874, 
-0.21109570562839508, -0.17732949554920197, -0.2769380807876587, 
-0.3607368767261505, -0.07842907309532166, -0.2518743574619293, 
0.035517483949661255, -0.6556509137153625, -0.360045850276947, 
-0.09371964633464813, -0.7284095883369446, -0.22719840705394745, 
-1.5540679693222046, -0.008972732350230217, -0.09106933325529099, 
-0.6465389132499695, 0.036245591938495636, 0.657580554485321, 
0.32453101873397827, 0.6105462908744812, 0.25256943702697754, 
-0.194427490234375, 0.6238796710968018, 0.52035855, 
-0.2708645761013031, 0.07761227339506149, 0.5315862894058228, 
0.44320303201675415, 0.6283767819404602, 0.2618369162082672, 
0.47253096103668213, 0.3889777660369873, 0.6856100559234619, 
0.3007083833217621, 0.4963226914405823, 0.08229698985815048, 
0.6170856952667236, 0.7501978874206543, 0.5744063258171082, 0.5233180522918701, 
0.32654184103012085, 0.3014495372772217, 0.4082445800304413, 
-0.1075737327337265, -0.018864337354898453, 0.34642550349235535, 
0.6414541602134705, 0.16678297519683838, 0.46028634905815125, 
0.4151197075843811, 0.14407725632190704, 0.41751566529273987, 
-0.054958608001470566, 0.4995657801628113, 0.4485369324684143, 
0.5600396990776062, 0.4098612368106842, 0.2748555839061737, 0.2562614381313324, 
0.4324824810028076};
double[]y=new double[]{2.6881366763426717, 2.685469965655465, 
2.261888917462379, -2.1933598759641226, -2.4279488152810145, 
-3.159389495849609, -2.3150004548153444, 2.468029206047388, 2.9442494682288953, 
2.653360013462529, -2.1189940659194835, -2.121635289903703, -2.103092459792032, 
-2.737034221468073, -2.203389332350286, 2.1985949039005512, 
-2.5021604073154737, 2.2732754920764533, -2.3867025598454346, 
2.135919387338413, 2.338120776050672, 2.2579794509726874, 2.083329059799027, 
-2.209733724709957, 2.297192240399189, -2.201703830825843, -3.460208691996806, 
2.428839296615834, -3.2944259224581574, 2.0654875493620883, -2.743948930837782, 
-2.2240674680805212, -3.646366778182357, -2.12513198437294, 2.979166188824589, 
-2.6275491570089033, -2.3818176136461338, 2.882096356968376, 
-2.2147229261558334, -3.159389495849609, 2.312428759406432, 2.3313864098846477, 
-2.72802504046371, -2.4216068225364245, 3.0119599306499123, 2.5753099009496783, 
-2.9200121783556843, -2.519352725437922, -4.133932580227538, -2.30496316762808, 
2.5381353678521363, 2.4818233632136697, 2.5277451177925685, -2.166465445816232, 
-2.1193897819471563, -2.109654332722425, 3.260211545834851, 
-3.9527673876059013, -2.199885089466947, 2.152573429747697, 
-3.1593894958496094, 2.5479522823226795, 3.342810742466116, 
-2.8197184957304007, -2.3407900299253765, -2.3303967152728537, 
2.1760131201015565, 2.143930552944634, 2.6231754409, 2.9126278362420575, 
-2.121169134387265, -2.2980208408109095, -2.285400411434817, 
-2.0742764640932903, 2.304178664095016, -2.2893825538911634, 
-3.7714771984158806, -2.7153698816026886, 2.8995011276220226, 
-2.158787087333056, -2.1045987952052547, 2.8478762016468147, 
-2.694578565956955, -2.696014432856399, -2.3190122657403496, -2.48225194403028, 
3.3393947563371764, 2.7775468034263517, -3.396526561479875, -2.699967947404961};
KolmogorovSmirnovTest kst=new KolmogorovSmirnovTest();
double p=kst.kolmogorovSmirnovTest(x, y);
System.out.println(p);
}
}


Results:
run:
Exception in thread "main" 
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)
at com.snplife.common.math.CC.main(CC.java:17)
C:\Users\xuechao\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: 
Java returned: 1
)
Description: 
{code:java}
public c

[jira] [Updated] (MATH-1475) KS test throw MathInternalError: illegal state

2019-04-04 Thread Chao Xue (JIRA)


 [ 
https://issues.apache.org/jira/browse/MATH-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chao Xue updated MATH-1475:
---
Docs Text: 
public class CC {
public static void main(String []args) throws Exception{
double[]x=new double[]{0.12350159883499146, -0.2601194679737091, 
-1.322849988937378, 0.379696249961853, 0.3987586498260498, 
-0.06924121081829071, -0.13951236009597778, 0.3213207423686981, 
0.7949811816215515, -0.15811105072498322, 0.19912190735340118, 
-0.46363770961761475, -0.20019817352294922, 0.3062838613986969, 
-0.3872813880443573, 0.10733723640441895, 0.10910066962242126, 
0.625770092010498, 0.2824835777282715, 0.3107619881629944, 0.1432388722896576, 
-0.08056988567113876, -0.5816712379455566, -0.09488576650619507, 
-0.2154506891965866, 0.2509046196937561, -0.06600788980722427, 
-0.01133995596319437, -0.22642627358436584, -0.12150175869464874, 
-0.21109570562839508, -0.17732949554920197, -0.2769380807876587, 
-0.3607368767261505, -0.07842907309532166, -0.2518743574619293, 
0.035517483949661255, -0.6556509137153625, -0.360045850276947, 
-0.09371964633464813, -0.7284095883369446, -0.22719840705394745, 
-1.5540679693222046, -0.008972732350230217, -0.09106933325529099, 
-0.6465389132499695, 0.036245591938495636, 0.657580554485321, 
0.32453101873397827, 0.6105462908744812, 0.25256943702697754, 
-0.194427490234375, 0.6238796710968018, 0.52035855, 
-0.2708645761013031, 0.07761227339506149, 0.5315862894058228, 
0.44320303201675415, 0.6283767819404602, 0.2618369162082672, 
0.47253096103668213, 0.3889777660369873, 0.6856100559234619, 
0.3007083833217621, 0.4963226914405823, 0.08229698985815048, 
0.6170856952667236, 0.7501978874206543, 0.5744063258171082, 0.5233180522918701, 
0.32654184103012085, 0.3014495372772217, 0.4082445800304413, 
-0.1075737327337265, -0.018864337354898453, 0.34642550349235535, 
0.6414541602134705, 0.16678297519683838, 0.46028634905815125, 
0.4151197075843811, 0.14407725632190704, 0.41751566529273987, 
-0.054958608001470566, 0.4995657801628113, 0.4485369324684143, 
0.5600396990776062, 0.4098612368106842, 0.2748555839061737, 0.2562614381313324, 
0.4324824810028076};
double[]y=new double[]{2.6881366763426717, 2.685469965655465, 
2.261888917462379, -2.1933598759641226, -2.4279488152810145, 
-3.159389495849609, -2.3150004548153444, 2.468029206047388, 2.9442494682288953, 
2.653360013462529, -2.1189940659194835, -2.121635289903703, -2.103092459792032, 
-2.737034221468073, -2.203389332350286, 2.1985949039005512, 
-2.5021604073154737, 2.2732754920764533, -2.3867025598454346, 
2.135919387338413, 2.338120776050672, 2.2579794509726874, 2.083329059799027, 
-2.209733724709957, 2.297192240399189, -2.201703830825843, -3.460208691996806, 
2.428839296615834, -3.2944259224581574, 2.0654875493620883, -2.743948930837782, 
-2.2240674680805212, -3.646366778182357, -2.12513198437294, 2.979166188824589, 
-2.6275491570089033, -2.3818176136461338, 2.882096356968376, 
-2.2147229261558334, -3.159389495849609, 2.312428759406432, 2.3313864098846477, 
-2.72802504046371, -2.4216068225364245, 3.0119599306499123, 2.5753099009496783, 
-2.9200121783556843, -2.519352725437922, -4.133932580227538, -2.30496316762808, 
2.5381353678521363, 2.4818233632136697, 2.5277451177925685, -2.166465445816232, 
-2.1193897819471563, -2.109654332722425, 3.260211545834851, 
-3.9527673876059013, -2.199885089466947, 2.152573429747697, 
-3.1593894958496094, 2.5479522823226795, 3.342810742466116, 
-2.8197184957304007, -2.3407900299253765, -2.3303967152728537, 
2.1760131201015565, 2.143930552944634, 2.6231754409, 2.9126278362420575, 
-2.121169134387265, -2.2980208408109095, -2.285400411434817, 
-2.0742764640932903, 2.304178664095016, -2.2893825538911634, 
-3.7714771984158806, -2.7153698816026886, 2.8995011276220226, 
-2.158787087333056, -2.1045987952052547, 2.8478762016468147, 
-2.694578565956955, -2.696014432856399, -2.3190122657403496, -2.48225194403028, 
3.3393947563371764, 2.7775468034263517, -3.396526561479875, -2.699967947404961};
KolmogorovSmirnovTest kst=new KolmogorovSmirnovTest();
double p=kst.kolmogorovSmirnovTest(x, y);
System.out.println(p);
}
}


Results:
run:
Exception in thread "main" 
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)
at com.snplife.common.math.CC.main(CC.java:17)
C:\Users\xuechao\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: 
Java returned: 1


  was:
public class CC {
public static void

[jira] [Updated] (MATH-1475) KS test throw MathInternalError: illegal state

2019-04-04 Thread Chao Xue (JIRA)


 [ 
https://issues.apache.org/jira/browse/MATH-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chao Xue updated MATH-1475:
---
Attachment: Figure_1.png

> KS test throw MathInternalError: illegal state
> --
>
> Key: MATH-1475
> URL: https://issues.apache.org/jira/browse/MATH-1475
> Project: Commons Math
>  Issue Type: Bug
>Affects Versions: 3.6.1
> Environment: Windows 10 (Professional)
> JDK 8
>Reporter: Chao Xue
>Priority: Critical
> Attachments: Figure_1.png
>
>
> Exception in thread "main" 
> 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)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (MATH-1475) KS test throw MathInternalError: illegal state

2019-04-04 Thread Chao Xue (JIRA)
Chao Xue created MATH-1475:
--

 Summary: KS test throw MathInternalError: illegal state
 Key: MATH-1475
 URL: https://issues.apache.org/jira/browse/MATH-1475
 Project: Commons Math
  Issue Type: Bug
Affects Versions: 3.6.1
 Environment: Windows 10 (Professional)

JDK 8
Reporter: Chao Xue


Exception in thread "main" 
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)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)