[jira] Created: (MATH-247) Add MathUtils method to check equality given some error bounds

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

[jira] Created: (MATH-247) Add MathUtils method to check equality given some error bounds

JIRA jira@apache.org
Add MathUtils method to check equality given some error bounds
--------------------------------------------------------------

                 Key: MATH-247
                 URL: https://issues.apache.org/jira/browse/MATH-247
             Project: Commons Math
          Issue Type: New Feature
            Reporter: Benjamin McCann
         Attachments: MathUtils.java.patch, MathUtilsTest.java.patch

It would be nice to have a utility method that tests for equality given some range of allowed error to account for floating point error.

--
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-247) Add MathUtils method to check equality given some error bounds

JIRA jira@apache.org

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

Benjamin McCann updated MATH-247:
---------------------------------

    Attachment: MathUtilsTest.java.patch
                MathUtils.java.patch

> Add MathUtils method to check equality given some error bounds
> --------------------------------------------------------------
>
>                 Key: MATH-247
>                 URL: https://issues.apache.org/jira/browse/MATH-247
>             Project: Commons Math
>          Issue Type: New Feature
>            Reporter: Benjamin McCann
>         Attachments: MathUtils.java.patch, MathUtilsTest.java.patch
>
>
> It would be nice to have a utility method that tests for equality given some range of allowed error to account for floating point error.

--
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-247) Add MathUtils method to check equality given some error bounds

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Luc Maisonobe resolved MATH-247.
--------------------------------

    Resolution: Fixed

Fixed in trunk as of  r746506.
Thanks for the patch

> Add MathUtils method to check equality given some error bounds
> --------------------------------------------------------------
>
>                 Key: MATH-247
>                 URL: https://issues.apache.org/jira/browse/MATH-247
>             Project: Commons Math
>          Issue Type: New Feature
>            Reporter: Benjamin McCann
>         Attachments: MathUtils.java.patch, MathUtilsTest.java.patch
>
>
> It would be nice to have a utility method that tests for equality given some range of allowed error to account for floating point error.

--
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-247) Add MathUtils method to check equality given some error bounds

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Benjamin McCann updated MATH-247:
---------------------------------

    Attachment: compareTo.patch

Adding a compareTo function to go along with the equals function submitted earlier.

> Add MathUtils method to check equality given some error bounds
> --------------------------------------------------------------
>
>                 Key: MATH-247
>                 URL: https://issues.apache.org/jira/browse/MATH-247
>             Project: Commons Math
>          Issue Type: New Feature
>            Reporter: Benjamin McCann
>         Attachments: compareTo.patch, MathUtils.java.patch, MathUtilsTest.java.patch
>
>
> It would be nice to have a utility method that tests for equality given some range of allowed error to account for floating point error.

--
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] Reopened: (MATH-247) Add MathUtils method to check equality given some error bounds

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Benjamin McCann reopened MATH-247:
----------------------------------


I added a path for a compareTo to go along with the equals method added earlier.

> Add MathUtils method to check equality given some error bounds
> --------------------------------------------------------------
>
>                 Key: MATH-247
>                 URL: https://issues.apache.org/jira/browse/MATH-247
>             Project: Commons Math
>          Issue Type: New Feature
>            Reporter: Benjamin McCann
>         Attachments: compareTo.patch, MathUtils.java.patch, MathUtilsTest.java.patch
>
>
> It would be nice to have a utility method that tests for equality given some range of allowed error to account for floating point error.

--
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-247) Add MathUtils method to check equality given some error bounds

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Luc Maisonobe resolved MATH-247.
--------------------------------

    Resolution: Fixed
      Assignee: Luc Maisonobe

applied patch with minor changes to obey javadoc html
fixed in subversion repository as of r749139

thanks for the patch

> Add MathUtils method to check equality given some error bounds
> --------------------------------------------------------------
>
>                 Key: MATH-247
>                 URL: https://issues.apache.org/jira/browse/MATH-247
>             Project: Commons Math
>          Issue Type: New Feature
>            Reporter: Benjamin McCann
>            Assignee: Luc Maisonobe
>         Attachments: compareTo.patch, MathUtils.java.patch, MathUtilsTest.java.patch
>
>
> It would be nice to have a utility method that tests for equality given some range of allowed error to account for floating point error.

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