You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2021/07/20 09:59:00 UTC

[jira] [Updated] (MATH-1616) Refactor "EmpiricalDistribution" class

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

Gilles Sadowski updated MATH-1616:
----------------------------------
    Description: 
[API|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EmpiricalDistribution.java;h=65e580883c5e7c755bb9b4ec028fc048b66a24cc;hb=HEAD] is error-prone.
An example of this is described in MATH-1462.

It is proposed that
* the class be immutable (ensuring that the user's attention is focused on providing consistent input at construction),
* loading of data from file, or URL, be removed (as it is out-of-scope).

  was:
[API|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EmpiricalDistribution.java;h=65e580883c5e7c755bb9b4ec028fc048b66a24cc;hb=HEAD] is error-prone.
An example of this is described in MATH-1462.

It is proposed that the class be immutable, ensuring that the user's attention is focused on providing consistent input at construction.


> Refactor "EmpiricalDistribution" class
> --------------------------------------
>
>                 Key: MATH-1616
>                 URL: https://issues.apache.org/jira/browse/MATH-1616
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.6.1
>            Reporter: Gilles Sadowski
>            Priority: Major
>              Labels: api, refactor
>             Fix For: 4.0
>
>
> [API|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EmpiricalDistribution.java;h=65e580883c5e7c755bb9b4ec028fc048b66a24cc;hb=HEAD] is error-prone.
> An example of this is described in MATH-1462.
> It is proposed that
> * the class be immutable (ensuring that the user's attention is focused on providing consistent input at construction),
> * loading of data from file, or URL, be removed (as it is out-of-scope).



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