[jira] Created: (MATH-329) In stat.Frequency, getPct(Object) uses getCumPct(Comparable) instead of getPct(Comparable)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (MATH-329) In stat.Frequency, getPct(Object) uses getCumPct(Comparable) instead of getPct(Comparable)

ASF GitHub Bot (Jira)
In stat.Frequency, getPct(Object) uses getCumPct(Comparable) instead of getPct(Comparable)
-------------------------------------------------------------------------------------------

                 Key: MATH-329
                 URL: https://issues.apache.org/jira/browse/MATH-329
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Willi Wu
            Priority: Minor


Drop in Replacement of 1.2 with 2.0 not possible because all getPct calls will be cummulative without code change

Frequency.java

   /**
      * Returns the percentage of values that are equal to v
     * @deprecated replaced by {@link #getPct(Comparable)} as of 2.0
     */
    @Deprecated
    public double getPct(Object v) {
        return getCumPct((Comparable<?>) v);
    }

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (MATH-329) In stat.Frequency, getPct(Object) uses getCumPct(Comparable) instead of getPct(Comparable)

ASF GitHub Bot (Jira)

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

Phil Steitz updated MATH-329:
-----------------------------

    Fix Version/s: 2.1

> In stat.Frequency, getPct(Object) uses getCumPct(Comparable) instead of getPct(Comparable)
> -------------------------------------------------------------------------------------------
>
>                 Key: MATH-329
>                 URL: https://issues.apache.org/jira/browse/MATH-329
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Willi Wu
>            Priority: Minor
>             Fix For: 2.1
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> Drop in Replacement of 1.2 with 2.0 not possible because all getPct calls will be cummulative without code change
> Frequency.java
>    /**
>       * Returns the percentage of values that are equal to v
>      * @deprecated replaced by {@link #getPct(Comparable)} as of 2.0
>      */
>     @Deprecated
>     public double getPct(Object v) {
>         return getCumPct((Comparable<?>) v);
>     }

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (MATH-329) In stat.Frequency, getPct(Object) uses getCumPct(Comparable) instead of getPct(Comparable)

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

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

Phil Steitz resolved MATH-329.
------------------------------

    Resolution: Fixed

Fixed in r900016.  Thanks for reporting this.

> In stat.Frequency, getPct(Object) uses getCumPct(Comparable) instead of getPct(Comparable)
> -------------------------------------------------------------------------------------------
>
>                 Key: MATH-329
>                 URL: https://issues.apache.org/jira/browse/MATH-329
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Willi Wu
>            Priority: Minor
>             Fix For: 2.1
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> Drop in Replacement of 1.2 with 2.0 not possible because all getPct calls will be cummulative without code change
> Frequency.java
>    /**
>       * Returns the percentage of values that are equal to v
>      * @deprecated replaced by {@link #getPct(Comparable)} as of 2.0
>      */
>     @Deprecated
>     public double getPct(Object v) {
>         return getCumPct((Comparable<?>) v);
>     }

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (MATH-329) In stat.Frequency, getPct(Object) uses getCumPct(Comparable) instead of getPct(Comparable)

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

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

Phil Steitz closed MATH-329.
----------------------------


> In stat.Frequency, getPct(Object) uses getCumPct(Comparable) instead of getPct(Comparable)
> -------------------------------------------------------------------------------------------
>
>                 Key: MATH-329
>                 URL: https://issues.apache.org/jira/browse/MATH-329
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Willi Wu
>            Priority: Minor
>             Fix For: 2.1
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> Drop in Replacement of 1.2 with 2.0 not possible because all getPct calls will be cummulative without code change
> Frequency.java
>    /**
>       * Returns the percentage of values that are equal to v
>      * @deprecated replaced by {@link #getPct(Comparable)} as of 2.0
>      */
>     @Deprecated
>     public double getPct(Object v) {
>         return getCumPct((Comparable<?>) v);
>     }

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.