[jira] [Created] (MATH-1614) Refactoring of "SimplexOptimizer"

2021-07-03 Thread Gilles Sadowski (Jira)
Gilles Sadowski created MATH-1614:
-

 Summary: Refactoring of "SimplexOptimizer"
 Key: MATH-1614
 URL: https://issues.apache.org/jira/browse/MATH-1614
 Project: Commons Math
  Issue Type: Task
Reporter: Gilles Sadowski
 Fix For: 4.0


It is proposed to
* reduce the number of repetitive statements
* create an immutable {{Simplex}} class (to replace {{AbstractSimplex}})



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MATH-1528) Remove "Serializable" from "Cluster" and "DistanceMeasure"

2021-07-03 Thread Gilles Sadowski (Jira)


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

Gilles Sadowski commented on MATH-1528:
---

I've just assigned it to you.
But please note that it is part of the broader MATH-1515.

> Remove "Serializable" from "Cluster" and "DistanceMeasure"
> --
>
> Key: MATH-1528
> URL: https://issues.apache.org/jira/browse/MATH-1528
> Project: Commons Math
>  Issue Type: Sub-task
>Reporter: Gilles Sadowski
>Assignee: Amar Prakash Pandey
>Priority: Major
>  Labels: serialization
> Fix For: 4.X
>
>
> "Serializable" [should be 
> avoided|https://dzone.com/articles/jdk-11-beginning-of-the-end-for-java-serialization].
> This was discussed several times (see "dev" ML archive) for other components.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (MATH-1528) Remove "Serializable" from "Cluster" and "DistanceMeasure"

2021-07-03 Thread Gilles Sadowski (Jira)


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

Gilles Sadowski updated MATH-1528:
--
Assignee: Amar Prakash Pandey

> Remove "Serializable" from "Cluster" and "DistanceMeasure"
> --
>
> Key: MATH-1528
> URL: https://issues.apache.org/jira/browse/MATH-1528
> Project: Commons Math
>  Issue Type: Sub-task
>Reporter: Gilles Sadowski
>Assignee: Amar Prakash Pandey
>Priority: Major
>  Labels: serialization
> Fix For: 4.X
>
>
> "Serializable" [should be 
> avoided|https://dzone.com/articles/jdk-11-beginning-of-the-end-for-java-serialization].
> This was discussed several times (see "dev" ML archive) for other components.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


[ 
https://issues.apache.org/jira/browse/RNG-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17374133#comment-17374133
 ] 

Alex Herbert commented on RNG-137:
--

Looking through the test for the accuracy of tan( x) / x, the test did not use 
a uniform x. It used a geometrically distributed x with increasing density as x 
-> 0. I changed the test to compute the mean and max ULP using a random uniform 
x in (0, pi / 4) which is the range used by the sampler.

Here are the results for the original approximation tan4283 and the extra 
precision tan4288 with a million random samples:
{noformat}
 tan(x)   tan(x) / x
tan4283  93428.606836201166 : 68301.385441   128066
tan4288  0.590735 4 :  0.404463
{noformat}
So the approximation is not as good as I previously posted. But with a mean ULP 
of <0.6 and a max ULP from Math.tan( x) of 4 this is acceptable for the 
increase in speed provided to the sampler.

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: Alpha1Performance.jpg, Beta0Performance.jpg, 
> GeneralPerformance.jpg, alpha0.5.jpg, alpha0.5b.jpg, alpha1.3.jpg, 
> alpha1.3b.jpg, beta0.3.jpg, beta0.3b.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (CSV-271) Missing separator with "print(object)" followed by "printRecord(Object[])"

2021-07-03 Thread Gary D. Gregory (Jira)


[ 
https://issues.apache.org/jira/browse/CSV-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17374126#comment-17374126
 ] 

Gary D. Gregory commented on CSV-271:
-

Sure, we're an open-source project, you do not need permission ;-)

> Missing separator with "print(object)" followed by "printRecord(Object[])"
> --
>
> Key: CSV-271
> URL: https://issues.apache.org/jira/browse/CSV-271
> Project: Commons CSV
>  Issue Type: Bug
>  Components: Printer
>Affects Versions: 1.8
>Reporter: Michael Wyraz
>Priority: Major
>
> Hello,
> the following code produces CSV with a missing separator:
> {code:java}
> CSVPrinter csv=new CSVPrinter(new 
> OutputStreamWriter(System.out,StandardCharsets.UTF_8),CSVFormat.DEFAULT);
> csv.print("a");
> csv.printRecord("b","c");{code}
> This produces "ab,c".
> The corresponding function that takes a list, works properly:
> {code:java}
> csv.print("a");
> csv.printRecord(Arrays.asList("b","c"));{code}
> Produces "a,b,c" as expected



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (MATH-1528) Remove "Serializable" from "Cluster" and "DistanceMeasure"

2021-07-03 Thread Amar Prakash Pandey (Jira)


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

Amar Prakash Pandey edited comment on MATH-1528 at 7/3/21, 7:39 PM:


[~erans] can I take this up? 


was (Author: amarlearning):
[~erans] can I take this up? And can you brief about what needed to be done.

> Remove "Serializable" from "Cluster" and "DistanceMeasure"
> --
>
> Key: MATH-1528
> URL: https://issues.apache.org/jira/browse/MATH-1528
> Project: Commons Math
>  Issue Type: Sub-task
>Reporter: Gilles Sadowski
>Priority: Major
>  Labels: serialization
> Fix For: 4.X
>
>
> "Serializable" [should be 
> avoided|https://dzone.com/articles/jdk-11-beginning-of-the-end-for-java-serialization].
> This was discussed several times (see "dev" ML archive) for other components.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (CSV-271) Missing separator with "print(object)" followed by "printRecord(Object[])"

2021-07-03 Thread Amar Prakash Pandey (Jira)


[ 
https://issues.apache.org/jira/browse/CSV-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17374123#comment-17374123
 ] 

Amar Prakash Pandey commented on CSV-271:
-

[~ggregory] can I take this up?

> Missing separator with "print(object)" followed by "printRecord(Object[])"
> --
>
> Key: CSV-271
> URL: https://issues.apache.org/jira/browse/CSV-271
> Project: Commons CSV
>  Issue Type: Bug
>  Components: Printer
>Affects Versions: 1.8
>Reporter: Michael Wyraz
>Priority: Major
>
> Hello,
> the following code produces CSV with a missing separator:
> {code:java}
> CSVPrinter csv=new CSVPrinter(new 
> OutputStreamWriter(System.out,StandardCharsets.UTF_8),CSVFormat.DEFAULT);
> csv.print("a");
> csv.printRecord("b","c");{code}
> This produces "ab,c".
> The corresponding function that takes a list, works properly:
> {code:java}
> csv.print("a");
> csv.printRecord(Arrays.asList("b","c"));{code}
> Produces "a,b,c" as expected



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Work logged] (CSV-206) Allow to use multiple-characters delimiter to separate column as withColumnSeparator: withDelimiter

2021-07-03 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/CSV-206?focusedWorklogId=618388=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-618388
 ]

ASF GitHub Bot logged work on CSV-206:
--

Author: ASF GitHub Bot
Created on: 03/Jul/21 18:51
Start Date: 03/Jul/21 18:51
Worklog Time Spent: 10m 
  Work Description: garydgregory commented on pull request #76:
URL: https://github.com/apache/commons-csv/pull/76#issuecomment-873453531


   @dota17 
   May you please rebase on master and address the comments?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 618388)
Time Spent: 1h 40m  (was: 1.5h)

> Allow to use multiple-characters delimiter to separate column as 
> withColumnSeparator: withDelimiter
> ---
>
> Key: CSV-206
> URL: https://issues.apache.org/jira/browse/CSV-206
> Project: Commons CSV
>  Issue Type: Improvement
>Reporter: jefferyyuan
>Priority: Major
>  Labels: commons, commons-csv, csv, csvparser
>  Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> It's not uncommon that we use multiple-characters delimiter to separate 
> columns in CVS: such as: [|]
> Sometimes, we have no choice as third-party defines the csv format like that.
> It would be great if apache commons.csv supports this function.
> I did some google search: seems there is no java library that supports use 
> multiple-characters as the column separator.
> But the C# CsvHelper does
> https://github.com/JoshClose/CsvHelper



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[GitHub] [commons-csv] garydgregory commented on pull request #76: [CSV-206] Multiple-characters delimiter

2021-07-03 Thread GitBox


garydgregory commented on pull request #76:
URL: https://github.com/apache/commons-csv/pull/76#issuecomment-873453531


   @dota17 
   May you please rebase on master and address the comments?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory commented on pull request #35: Turn CSVRecord into a List

2021-07-03 Thread GitBox


garydgregory commented on pull request #35:
URL: https://github.com/apache/commons-csv/pull/35#issuecomment-873453380


   Note that `CSVRecord` in git master now supports() `toList()` and 
`stream()`. I'm not not convinced that it makes sense for a record to be an 
actual list.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory commented on pull request #45: adding power support

2021-07-03 Thread GitBox


garydgregory commented on pull request #45:
URL: https://github.com/apache/commons-csv/pull/45#issuecomment-873452896


   CLosing power vs. not should not matter.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory closed pull request #45: adding power support

2021-07-03 Thread GitBox


garydgregory closed pull request #45:
URL: https://github.com/apache/commons-csv/pull/45


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Resolved] (CSV-148) Add test cases for withIgnoreSurroundingSpaces() and withTrim() #70

2021-07-03 Thread Gary D. Gregory (Jira)


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

Gary D. Gregory resolved CSV-148.
-
Fix Version/s: (was: Review)
   1.9.0
   Resolution: Fixed

> Add test cases for withIgnoreSurroundingSpaces() and withTrim() #70
> ---
>
> Key: CSV-148
> URL: https://issues.apache.org/jira/browse/CSV-148
> Project: Commons CSV
>  Issue Type: Bug
>  Components: Printer
>Affects Versions: 1.1
> Environment: JDK 1.7
>Reporter: Piotr Ciruk
>Priority: Minor
> Fix For: 1.9.0
>
> Attachments: commons-csv_CSV-148.patch, commons-csv_CSV-148.patch
>
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> It seems that {{CSVFormat}}'s property {{ignoreSurroundingSpaces}} is not 
> taken into consideration while printing out values using {{CSVPrinter}}.
> Given:
> {code}
> System.out.println(
>   CSVFormat.DEFAULT
>   .withIgnoreSurroundingSpaces(true)
>   .format("",
>   " ",
>   " Single space on the left",
>   "Single space on the right ",
>   " Single spaces on both sides ",
>   "   Multiple spaces on the left",
>   "Multiple spaces on the right",
>   "  Multiple spaces on both sides ")
> );
> {code}
> Actual result:
> {code}
> ""," "," Single space on the left","Single space on the right "," Single 
> spaces on both sides ","   Multiple spaces on the left","Multiple spaces on 
> the right","  Multiple spaces on both sides "
> {code}
> Expected result:
> {code}
> "","","Single space on the left","Single space on the right","Single spaces 
> on both sides","Multiple spaces on the left","Multiple spaces on the 
> right","Multiple spaces on both sides"
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (CSV-148) Add test cases for withIgnoreSurroundingSpaces() and withTrim() #70

2021-07-03 Thread Gary D. Gregory (Jira)


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

Gary D. Gregory updated CSV-148:

Summary: Add test cases for withIgnoreSurroundingSpaces() and withTrim() 
#70  (was: CSVFormat.ignoreSurroundingSpaces is ignored when printing)

> Add test cases for withIgnoreSurroundingSpaces() and withTrim() #70
> ---
>
> Key: CSV-148
> URL: https://issues.apache.org/jira/browse/CSV-148
> Project: Commons CSV
>  Issue Type: Bug
>  Components: Printer
>Affects Versions: 1.1
> Environment: JDK 1.7
>Reporter: Piotr Ciruk
>Priority: Minor
> Fix For: Review
>
> Attachments: commons-csv_CSV-148.patch, commons-csv_CSV-148.patch
>
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> It seems that {{CSVFormat}}'s property {{ignoreSurroundingSpaces}} is not 
> taken into consideration while printing out values using {{CSVPrinter}}.
> Given:
> {code}
> System.out.println(
>   CSVFormat.DEFAULT
>   .withIgnoreSurroundingSpaces(true)
>   .format("",
>   " ",
>   " Single space on the left",
>   "Single space on the right ",
>   " Single spaces on both sides ",
>   "   Multiple spaces on the left",
>   "Multiple spaces on the right",
>   "  Multiple spaces on both sides ")
> );
> {code}
> Actual result:
> {code}
> ""," "," Single space on the left","Single space on the right "," Single 
> spaces on both sides ","   Multiple spaces on the left","Multiple spaces on 
> the right","  Multiple spaces on both sides "
> {code}
> Expected result:
> {code}
> "","","Single space on the left","Single space on the right","Single spaces 
> on both sides","Multiple spaces on the left","Multiple spaces on the 
> right","Multiple spaces on both sides"
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Work logged] (CSV-148) CSVFormat.ignoreSurroundingSpaces is ignored when printing

2021-07-03 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/CSV-148?focusedWorklogId=618387=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-618387
 ]

ASF GitHub Bot logged work on CSV-148:
--

Author: ASF GitHub Bot
Created on: 03/Jul/21 18:42
Start Date: 03/Jul/21 18:42
Worklog Time Spent: 10m 
  Work Description: garydgregory merged pull request #70:
URL: https://github.com/apache/commons-csv/pull/70


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 618387)
Time Spent: 50m  (was: 40m)

> CSVFormat.ignoreSurroundingSpaces is ignored when printing
> --
>
> Key: CSV-148
> URL: https://issues.apache.org/jira/browse/CSV-148
> Project: Commons CSV
>  Issue Type: Bug
>  Components: Printer
>Affects Versions: 1.1
> Environment: JDK 1.7
>Reporter: Piotr Ciruk
>Priority: Minor
> Fix For: Review
>
> Attachments: commons-csv_CSV-148.patch, commons-csv_CSV-148.patch
>
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> It seems that {{CSVFormat}}'s property {{ignoreSurroundingSpaces}} is not 
> taken into consideration while printing out values using {{CSVPrinter}}.
> Given:
> {code}
> System.out.println(
>   CSVFormat.DEFAULT
>   .withIgnoreSurroundingSpaces(true)
>   .format("",
>   " ",
>   " Single space on the left",
>   "Single space on the right ",
>   " Single spaces on both sides ",
>   "   Multiple spaces on the left",
>   "Multiple spaces on the right",
>   "  Multiple spaces on both sides ")
> );
> {code}
> Actual result:
> {code}
> ""," "," Single space on the left","Single space on the right "," Single 
> spaces on both sides ","   Multiple spaces on the left","Multiple spaces on 
> the right","  Multiple spaces on both sides "
> {code}
> Expected result:
> {code}
> "","","Single space on the left","Single space on the right","Single spaces 
> on both sides","Multiple spaces on the left","Multiple spaces on the 
> right","Multiple spaces on both sides"
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[GitHub] [commons-csv] garydgregory merged pull request #70: [CSV-148] Add testcases about withIgnoreSurroundingSpaces() and withTrim()

2021-07-03 Thread GitBox


garydgregory merged pull request #70:
URL: https://github.com/apache/commons-csv/pull/70


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory merged pull request #130: Minor Improvements

2021-07-03 Thread GitBox


garydgregory merged pull request #130:
URL: https://github.com/apache/commons-csv/pull/130


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Commented] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


[ 
https://issues.apache.org/jira/browse/RNG-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17374117#comment-17374117
 ] 

Alex Herbert commented on RNG-137:
--

Here are the same plots with the StableRandomGenerator. It has to be updated to 
convert the 1-parameterisation to the 0-parameterisation. However they do not 
look exactly the same:

!alpha1.3b.jpg!

!alpha0.5b.jpg!

!beta0.3b.jpg!

The alpha=1.3 plot is definitely broken for beta=1. The function does not 
appear to be continuous through beta 0 to beta 1.

The alpha=0.5 plot appears mostly the same except when beta=0.

The beta=0.3 plot is broken for alpha=2 as the variance of the Gaussian 
distribution is 1 in the CM implementation and not 2. It appears wrong as alpha 
-> 0.

The StableRandomGenerator will not pass the tests for the expected distribution 
deciles that the new generator passes. These deciles are the same (within 1e-10 
relative error) when computed with Matlab or the STABLE program provided by 
Nolan. I'll do some more test cases but I think the new generator is correct.

If you have matlab you can play around with this using e.g.
{noformat}
b = 0.3;
pd1 = makedist('Stable','alpha',0.1,'beta',b,'gam',1,'delta',0);
pd2 = makedist('Stable','alpha',0.5,'beta',b,'gam',1,'delta',0);
pd3 = makedist('Stable','alpha',1.0,'beta',b,'gam',1,'delta',0);
pd4 = makedist('Stable','alpha',1.5,'beta',b,'gam',1,'delta',0);
pd5 = makedist('Stable','alpha',2.0,'beta',b,'gam',1,'delta',0);

x = -5:.01:5;
p1 = cdf(pd1,x);
p2 = cdf(pd2,x);
p3 = cdf(pd3,x);
p4 = cdf(pd4,x);
p5 = cdf(pd5,x);

figure
plot(x,p1,'r--');
hold on
plot(x,p2,'g--');
plot(x,p3,'b--');
plot(x,p4,'r-');
plot(x,p5,'g-');
hold off

a = 1.3;
pd1 = makedist('Stable','alpha',a,'beta',0.0,'gam',1,'delta',0);
pd2 = makedist('Stable','alpha',a,'beta',0.25,'gam',1,'delta',0);
pd3 = makedist('Stable','alpha',a,'beta',0.5,'gam',1,'delta',0);
pd4 = makedist('Stable','alpha',a,'beta',0.75,'gam',1,'delta',0);
pd5 = makedist('Stable','alpha',a,'beta',1.0,'gam',1,'delta',0);

x = -5:.01:5;
p1 = cdf(pd1,x);
p2 = cdf(pd2,x);
p3 = cdf(pd3,x);
p4 = cdf(pd4,x);
p5 = cdf(pd5,x);

figure
plot(x,p1,'r--');
hold on
plot(x,p2,'g--');
plot(x,p3,'b--');
plot(x,p4,'r-');
plot(x,p5,'g-');
hold off
{noformat}

These look the same as the beta=0.3 plot and alpha=1.3 plot from the new 
StableGenerator. Note there is no alpha=0.01 as the distribution is numerically 
hard to compute as alpha -> 0 due to the limited precision of a double.

 

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: Alpha1Performance.jpg, Beta0Performance.jpg, 
> GeneralPerformance.jpg, alpha0.5.jpg, alpha0.5b.jpg, alpha1.3.jpg, 
> alpha1.3b.jpg, beta0.3.jpg, beta0.3b.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


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

Alex Herbert updated RNG-137:
-
Attachment: beta0.3b.jpg

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: Alpha1Performance.jpg, Beta0Performance.jpg, 
> GeneralPerformance.jpg, alpha0.5.jpg, alpha0.5b.jpg, alpha1.3.jpg, 
> alpha1.3b.jpg, beta0.3.jpg, beta0.3b.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


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

Alex Herbert updated RNG-137:
-
Attachment: alpha1.3b.jpg

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: Alpha1Performance.jpg, Beta0Performance.jpg, 
> GeneralPerformance.jpg, alpha0.5.jpg, alpha0.5b.jpg, alpha1.3.jpg, 
> alpha1.3b.jpg, beta0.3.jpg, beta0.3b.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


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

Alex Herbert updated RNG-137:
-
Attachment: alpha0.5b.jpg

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: Alpha1Performance.jpg, Beta0Performance.jpg, 
> GeneralPerformance.jpg, alpha0.5.jpg, alpha0.5b.jpg, alpha1.3.jpg, 
> alpha1.3b.jpg, beta0.3.jpg, beta0.3b.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[GitHub] [commons-csv] coveralls edited a comment on pull request #130: Minor Improvement

2021-07-03 Thread GitBox


coveralls edited a comment on pull request #130:
URL: https://github.com/apache/commons-csv/pull/130#issuecomment-766590441


   
   [![Coverage 
Status](https://coveralls.io/builds/41096213/badge)](https://coveralls.io/builds/41096213)
   
   Coverage remained the same at 98.466% when pulling 
**5f71065460bc93e4e35eab7259080b0ec4e7b277 on 
arturobernalg:feature/minor_improvement** into 
**af84037189f556029623689201b31ba85de6126e on apache:master**.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] arturobernalg commented on pull request #130: Minor Improvement

2021-07-03 Thread GitBox


arturobernalg commented on pull request #130:
URL: https://github.com/apache/commons-csv/pull/130#issuecomment-873439092


   > @arturobernalg
   > May you please rebase on master?
   
   HI @garydgregory 
   Done
   TY


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Resolved] (COMPRESS-565) Regression - Corrupted headers when using 64 bit ZipArchiveOutputStream

2021-07-03 Thread Stefan Bodewig (Jira)


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

Stefan Bodewig resolved COMPRESS-565.
-
Resolution: Fixed

> Regression - Corrupted headers when using 64 bit ZipArchiveOutputStream
> ---
>
> Key: COMPRESS-565
> URL: https://issues.apache.org/jira/browse/COMPRESS-565
> Project: Commons Compress
>  Issue Type: Bug
>  Components: Archivers
>Affects Versions: 1.20
>Reporter: Evgenii Bovykin
>Assignee: Peter Lee
>Priority: Major
> Fix For: 1.21
>
> Attachments: commons-compress-1.21-SNAPSHOT.jar, 
> image-2021-02-20-15-51-21-747.png
>
>  Time Spent: 4.5h
>  Remaining Estimate: 0h
>
> We've recently updated commons-compress library from version 1.9 to 1.20 and 
> now experiencing the problem that didn't occur before.
>  
> When using ZipArchiveOutputStream to archive 5Gb file and setting the 
> following fields
> {{output.setUseZip64(Zip64Mode.Always)}}
>  
> {{output.setCreateUnicodeExtraFields(ZipArchiveOutputStream.UnicodeExtraFieldPolicy.ALWAYS)}}
> resulting archive contains corrupted headers.
> *Expand-Archive Powershell utility cannot extract the archive at all with the 
> error about corrupted header. 7zip also complains about it, but can extract 
> the archive.*
>  
> The problem didn't appear when using library version 1.9.
>  
> I've created a sample project that reproduces the error - 
> [https://github.com/missingdays/commons-compress-example]
> Issue doesn't reproduce if you do any of the following:
>  
>  # Downgrade library to version 1.9
>  # Remove 
> output.setCreateUnicodeExtraFields(ZipArchiveOutputStream.UnicodeExtraFieldPolicy.ALWAYS)
>  # Remove output.setUseZip64(Zip64Mode.Always) and zip smaller file (e.g. 1Gb)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (MATH-1528) Remove "Serializable" from "Cluster" and "DistanceMeasure"

2021-07-03 Thread Amar Prakash Pandey (Jira)


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

Amar Prakash Pandey edited comment on MATH-1528 at 7/3/21, 3:29 PM:


[~erans] can I take this up? And can you brief about what needed to be done.


was (Author: amarlearning):
[~erans] can I take this up?

> Remove "Serializable" from "Cluster" and "DistanceMeasure"
> --
>
> Key: MATH-1528
> URL: https://issues.apache.org/jira/browse/MATH-1528
> Project: Commons Math
>  Issue Type: Sub-task
>Reporter: Gilles Sadowski
>Priority: Major
>  Labels: serialization
> Fix For: 4.X
>
>
> "Serializable" [should be 
> avoided|https://dzone.com/articles/jdk-11-beginning-of-the-end-for-java-serialization].
> This was discussed several times (see "dev" ML archive) for other components.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MATH-1528) Remove "Serializable" from "Cluster" and "DistanceMeasure"

2021-07-03 Thread Amar Prakash Pandey (Jira)


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

Amar Prakash Pandey commented on MATH-1528:
---

[~erans] can I take this up?

> Remove "Serializable" from "Cluster" and "DistanceMeasure"
> --
>
> Key: MATH-1528
> URL: https://issues.apache.org/jira/browse/MATH-1528
> Project: Commons Math
>  Issue Type: Sub-task
>Reporter: Gilles Sadowski
>Priority: Major
>  Labels: serialization
> Fix For: 4.X
>
>
> "Serializable" [should be 
> avoided|https://dzone.com/articles/jdk-11-beginning-of-the-end-for-java-serialization].
> This was discussed several times (see "dev" ML archive) for other components.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Gilles Sadowski (Jira)


[ 
https://issues.apache.org/jira/browse/RNG-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17374051#comment-17374051
 ] 

Gilles Sadowski commented on RNG-137:
-

Thanks a lot for another significant improvement to "Commons Math" (through the 
upcoming removal of 
[StableRandomGenerator|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
 there).

bq. The version in CM did not have extensive unit tests and when I investigated 
further I found the sampler was incorrect for several of the parameter 
combinations (alpha=2, alpha != 1)

Is it possible (not too time-consuming) to include here FTR plots from the 
(buggy) data generated by CM implementation?

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: Alpha1Performance.jpg, Beta0Performance.jpg, 
> GeneralPerformance.jpg, alpha0.5.jpg, alpha1.3.jpg, beta0.3.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MATH-1462) EmpiricalDistribution:inverseCumulativeProbability return Infinity

2021-07-03 Thread Amar Prakash Pandey (Jira)


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

Amar Prakash Pandey commented on MATH-1462:
---

[~erans] unfortunately no.

> EmpiricalDistribution:inverseCumulativeProbability return Infinity
> --
>
> Key: MATH-1462
> URL: https://issues.apache.org/jira/browse/MATH-1462
> Project: Commons Math
>  Issue Type: Bug
>Affects Versions: 3.6.1
>Reporter: elyes belarbi
>Assignee: Amar Prakash Pandey
>Priority: Critical
> Fix For: 4.0
>
> Attachments: Screenshot from 2021-07-03 00-31-54.png, Screenshot from 
> 2021-07-03 00-34-23.png
>
>
> Hi,
> inverseCumulativeProbability(0.5) return "infinity" which is absurd while it 
> return correct values for 0.49 and 0.51, Here is the test :
> {code:java}
> double[] data = {6464.0205, 6449.1328, 6489.4569, 6497.5533, 6251.6487, 
> 6252.6513, 6339.7883,
> 6356.2622, 6222.1251, 6157.3813, 6242.4741, 6332.5347, 6468.0633, 6471.2319, 
> 6473.9929, 6589.1322, 
> 6511.2191, 6339.4349, 6307.7735, 6288.0915, 6354.0572, 6385.8283, 6325.3756, 
> 6433.1699, 6433.6507, 
> 6424.6806, 6380.5268, 6407.6705, 6241.2198, 6230.3681, 6367.5943, 6358.4817, 
> 6272.8039, 6269.0211, 
> 6312.9027, 6349.5926, 6404.0775, 6326.986, 6283.8685, 6309.9021, 6336.8554, 
> 6389.1598, 6281.0372, 
> 6304.8852, 6359.2651, 6426.519, 6400.3926, 6440.6798, 6292.5812, 6398.4911, 
> 6307.0002, 6284.2111, 6271.371, 6368.6377, 6323.3372, 6276.2155, 
> 6335.0117, 6319.2466, 6252.9969, 6445.2074, 6461.3944, 6384.1345};
> EmpiricalDistribution ed = new EmpiricalDistribution(data.length);
> ed.load(data);
> double p50 = ed.inverseCumulativeProbability(0.5);
> double p51 = ed.inverseCumulativeProbability(0.5);
> double p49 = ed.inverseCumulativeProbability(0.4);
> assertTrue(p51<6350);
> assertTrue(p49<6341);
> assertTrue(p50<7000);
> {code}
>  Any clue to fix this ?
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[GitHub] [commons-csv] garydgregory commented on pull request #150: fix ci

2021-07-03 Thread GitBox


garydgregory commented on pull request #150:
URL: https://github.com/apache/commons-csv/pull/150#issuecomment-873416252


   @XenoAmess 
   Seems obsolete now?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory merged pull request #137: Bump opencsv from 5.2 to 5.4

2021-07-03 Thread GitBox


garydgregory merged pull request #137:
URL: https://github.com/apache/commons-csv/pull/137


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory merged pull request #151: Bump jmh-generator-annprocess from 1.5.2 to 1.32

2021-07-03 Thread GitBox


garydgregory merged pull request #151:
URL: https://github.com/apache/commons-csv/pull/151


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory merged pull request #152: Bump jmh-core from 1.5.2 to 1.32

2021-07-03 Thread GitBox


garydgregory merged pull request #152:
URL: https://github.com/apache/commons-csv/pull/152


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] coveralls edited a comment on pull request #151: Bump jmh-generator-annprocess from 1.5.2 to 1.32

2021-07-03 Thread GitBox


coveralls edited a comment on pull request #151:
URL: https://github.com/apache/commons-csv/pull/151#issuecomment-849333933


   
   [![Coverage 
Status](https://coveralls.io/builds/41095260/badge)](https://coveralls.io/builds/41095260)
   
   Coverage remained the same at 98.465% when pulling 
**1d935138144915c66d6f187d2e2cc997a74f2006 on 
dependabot/maven/org.openjdk.jmh-jmh-generator-annprocess-1.32** into 
**805d329bda8c322eabdd9fd821157ea011ee62e1 on master**.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] coveralls edited a comment on pull request #137: Bump opencsv from 5.2 to 5.4

2021-07-03 Thread GitBox


coveralls edited a comment on pull request #137:
URL: https://github.com/apache/commons-csv/pull/137#issuecomment-799146085


   
   [![Coverage 
Status](https://coveralls.io/builds/41095258/badge)](https://coveralls.io/builds/41095258)
   
   Coverage remained the same at 98.465% when pulling 
**3e9fae33ce1ab50154c2dcf0cd10fa780f3cccf4 on 
dependabot/maven/com.opencsv-opencsv-5.4** into 
**805d329bda8c322eabdd9fd821157ea011ee62e1 on master**.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] coveralls edited a comment on pull request #152: Bump jmh-core from 1.5.2 to 1.32

2021-07-03 Thread GitBox


coveralls edited a comment on pull request #152:
URL: https://github.com/apache/commons-csv/pull/152#issuecomment-849335271


   
   [![Coverage 
Status](https://coveralls.io/builds/41095257/badge)](https://coveralls.io/builds/41095257)
   
   Coverage remained the same at 98.465% when pulling 
**229b8715ec3eb4cc1bca772025d8c02e45a300b9 on 
dependabot/maven/org.openjdk.jmh-jmh-core-1.32** into 
**805d329bda8c322eabdd9fd821157ea011ee62e1 on master**.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Commented] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


[ 
https://issues.apache.org/jira/browse/RNG-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17374011#comment-17374011
 ] 

Alex Herbert commented on RNG-137:
--

I have re-implemented the StableSampler due to issues in the commons math 
version. The version in CM did not have extensive unit tests and when I 
investigated further I found the sampler was incorrect for several of the 
parameter combinations (alpha=2, alpha != 1). I could not find the reference 
provided in the source code for the StableRandomGenerator for the origin of the 
formulas. The alpha != 1 formula does not match others I found.
h2. References

Chambers, Mallows & Stuck (1976) "A Method for Simulating Stable Random 
Variables". Journal of the American Statistical Association. 71 (354): 340–344.

Weron (1996) "On the Chambers-Mallows-Stuck method for simulating skewed stable 
random variables". Statistics & Probability Letters. 28 (2): 165–171.

Nolan (2020) "Univariate Stable Distributions: Models for Heavy Tailed Data". 
Springer Series in Operations Research and Financial Engineering. Springer. 
Sections 1.7 and 3.3.3.

Hart, JF et al (1968) Computer Approximations, New York: John Wiley & Sons, Inc.
h2. Introduction

The stable distribution is a family of distributions having an alpha (in (0, 
2]) and beta (in [-1, 1]) parameter that define the shape (alpha=stability, 
beta=skew) and then a scale and location parameter. Special cases include the 
Gaussian (alpha=2, beta ignored), Cauchy (alpha=1, beta=0), and Levy 
(alpha=0.5, beta=1). The support is in the interval (-inf, inf) unless 
beta=+/-1 and alpha < 1. Here the support is to beta * tan(2*alpha/pi), and 
this finite limit is upper or lower depending on the sign of beta.

The stable distribution is defined by the characteristic function which 
includes a complex number component. There are several parameterisations for 
the stable distribution which have different characteristic functions. These 
have been formally described in several places but are summarised in Nolan. In 
Nolan the scale is named gamma, and the location is named delta.

The 1-parameterisation is that computed by the CM implementation. This 
parameterisation is discontinuous at alpha=1. The 0-parameterisation is 
continuous at alpha=1. A 0-parameterised stable deviate can be shifted to a 
1-parameterised deviate by an offset. The magnitude of the offset approaches 
infinity as alpha -> 1 thus the discontinuity. For numerical work the 
0-parameterisation is recommended. A standard deviate x in the 
0-parameterisation with scale=1, location=0 can be shifted to any deviate by a 
linear transform gamma * x + delta.

A method for computing a stable random deviate was published by Chambers et al 
and is known as the Chambers-Mallows-Stuck (CMS) method. It requires generation 
of a uniform deviate in (-pi/2, pi/2) and an exponential deviate with mean 1. 
Two formulas were provided for alpha=1 and alpha != 1 and later a formal proof 
of this was provided by Weron. These formulas output a deviate in the 
1-parameterisation. A shift (zeta) can be applied to obtain the 
0-parameterisation. Close to alpha=1 this shift approaches 1e16 using the JDK 
math library to compute tan:
{noformat}
Zeta
Beta
Alpha   1.0 0.5 0.250.1 0.0
0.001   0.0015710.0007854   0.0003927   0.0001571   0.0
0.010.01571 0.0078550.0039270.0015710.0
0.050.07870 0.03935 0.01968 0.0078700.0
0.1 0.1584  0.07919 0.03960 0.01584 0.0
0.5 1.000   0.5000  0.2500  0.1000  0.0
0.9 6.314   3.157   1.578   0.6314  0.0
0.9512.71   6.353   3.177   1.271   0.0
0.9963.66   31.83   15.91   6.366   0.0
0.995   127.3   63.66   31.83   12.73   0.0
0.999   636.6   318.3   159.2   63.66   0.0
0.9995  1273636.6   318.3   127.3   0.0
0.  636631831592636.6   0.0
1.0 1.633E+16   8.166E+15   4.083E+15   1.633E+15   0.0
{noformat}
Since most of the deviates when alpha=1 are in the range [-5, 5] this large 
offset to create the deviate reduces the number of significant bits in the 
sample due to cancellation.

However the Chambers paper provided a rearrangement of the formulas using a 
re-parameterisation and half angle trigonomic identities to create a function 
that is continuous as alpha -> 1. This outputs a 0-parameterisation deviate. 
The paper provides FORTRAN code to compute the sample (the function RSTAB). I 
refer to this as the CMS formula and the alternative as the Weron formula, 
although both are implementations of the CMS method.

The CMS algorithm RSTAB uses a function tan( x) / x and calls it using a value 
of x in the range (-pi/4, pi/4). This can be approximated using an 

[GitHub] [commons-csv] garydgregory commented on pull request #151: Bump jmh-generator-annprocess from 1.5.2 to 1.32

2021-07-03 Thread GitBox


garydgregory commented on pull request #151:
URL: https://github.com/apache/commons-csv/pull/151#issuecomment-873405544


   @dependabot rebase


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory commented on pull request #152: Bump jmh-core from 1.5.2 to 1.32

2021-07-03 Thread GitBox


garydgregory commented on pull request #152:
URL: https://github.com/apache/commons-csv/pull/152#issuecomment-873405519


   @dependabot rebase


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory commented on pull request #137: Bump opencsv from 5.2 to 5.4

2021-07-03 Thread GitBox


garydgregory commented on pull request #137:
URL: https://github.com/apache/commons-csv/pull/137#issuecomment-873405500


   @dependabot rebase


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory commented on pull request #130: Minor Improvement

2021-07-03 Thread GitBox


garydgregory commented on pull request #130:
URL: https://github.com/apache/commons-csv/pull/130#issuecomment-873405457


   @arturobernalg 
   May you please rebase on master?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-csv] garydgregory merged pull request #156: Bump mockito-core from 3.7.7 to 3.11.2

2021-07-03 Thread GitBox


garydgregory merged pull request #156:
URL: https://github.com/apache/commons-csv/pull/156


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Updated] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


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

Alex Herbert updated RNG-137:
-
Attachment: Alpha1Performance.jpg

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: Alpha1Performance.jpg, Beta0Performance.jpg, 
> GeneralPerformance.jpg, alpha0.5.jpg, alpha1.3.jpg, beta0.3.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


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

Alex Herbert updated RNG-137:
-
Attachment: Beta0Performance.jpg

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: Alpha1Performance.jpg, Beta0Performance.jpg, 
> GeneralPerformance.jpg, alpha0.5.jpg, alpha1.3.jpg, beta0.3.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


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

Alex Herbert updated RNG-137:
-
Attachment: GeneralPerformance.jpg

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: GeneralPerformance.jpg, alpha0.5.jpg, alpha1.3.jpg, 
> beta0.3.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


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

Alex Herbert updated RNG-137:
-
Attachment: beta0.3.jpg

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: alpha0.5.jpg, alpha1.3.jpg, beta0.3.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


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

Alex Herbert updated RNG-137:
-
Attachment: alpha1.3.jpg

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: alpha0.5.jpg, alpha1.3.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


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

Alex Herbert updated RNG-137:
-
Attachment: alpha0.5.jpg

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
> Attachments: alpha0.5.jpg, alpha1.3.jpg
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RNG-137) Move class from "Commons Math"

2021-07-03 Thread Alex Herbert (Jira)


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

Alex Herbert updated RNG-137:
-
Description: Shouldn't CM's class 
[{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
 be moved to the \{{commons-rng-sampling}} module?  (was: Shouldn't CM's class 
[{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
 be moved to the{{commons-rng-sampling}} module?
)

> Move class from "Commons Math"
> --
>
> Key: RNG-137
> URL: https://issues.apache.org/jira/browse/RNG-137
> Project: Commons RNG
>  Issue Type: Task
>  Components: sampling
>Reporter: Gilles Sadowski
>Assignee: Alex Herbert
>Priority: Trivial
>  Labels: commons-math, port
> Fix For: 1.4
>
>
> Shouldn't CM's class 
> [{{StableRandomGenerator}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/main/java/org/apache/commons/math4/random/StableRandomGenerator.java;h=f3a851b9b16c47546cac8371e272dbf59a909c09;hb=HEAD]
>  be moved to the \{{commons-rng-sampling}} module?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FILEUPLOAD-338) FileItem.write crash on Windows Tomcat

2021-07-03 Thread yangshulin (Jira)


[ 
https://issues.apache.org/jira/browse/FILEUPLOAD-338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17373938#comment-17373938
 ] 

yangshulin commented on FILEUPLOAD-338:
---

So how to solve




> FileItem.write crash on Windows Tomcat
> --
>
> Key: FILEUPLOAD-338
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-338
> Project: Commons FileUpload
>  Issue Type: Bug
>Affects Versions: 1.4
>Reporter: yangshulin
>Priority: Critical
>
> When I use FileItem.write on FileUpload 1.4, it will crash on Windows Tomcat, 
> linux server has not been tested. I find it is crashed by FileUtils.moveFile, 
> which reports IO Exception. FileUpload 1.3 works well, because it use file 
> streams copying.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[GitHub] [commons-compress] coveralls commented on pull request #210: Pack200 harmony as fallback

2021-07-03 Thread GitBox


coveralls commented on pull request #210:
URL: https://github.com/apache/commons-compress/pull/210#issuecomment-873357737


   
   [![Coverage 
Status](https://coveralls.io/builds/41093854/badge)](https://coveralls.io/builds/41093854)
   
   Coverage decreased (-9.3%) to 51.69% when pulling 
**d35803651d0e992d19db9da71a0a2e5082c865d2 on pack200-harmony-as-fallback** 
into **8522651d53566458c345b8ebe423eb6dfd580a47 on pack200**.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-compress] bodewig commented on pull request #210: Pack200 harmony as fallback

2021-07-03 Thread GitBox


bodewig commented on pull request #210:
URL: https://github.com/apache/commons-compress/pull/210#issuecomment-873357342


   I have rebased the branch against master and close the PR. This can be 
revisited later if anybody is interested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [commons-compress] bodewig closed pull request #210: Pack200 harmony as fallback

2021-07-03 Thread GitBox


bodewig closed pull request #210:
URL: https://github.com/apache/commons-compress/pull/210


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org