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

Matt Juntunen commented on NUMBERS-77:
--------------------------------------

{quote}So currently the comparisons break down when NaN is input. Is this the 
behaviour we want? 
{quote}

It would be better if we could provide a comparison that produces a stable 
sort. However, this may not be possible based on our use of "fuzzy" 
comparisons. For example, the values {{[0.01, 0.02, 1, 2]}} are "correctly" 
sorted when using an epsilon value of {{0.1}} but so are {{[0.02, 0.01, 1, 
2]}}. The first two values are considered equal.

> Move utilities from "Commons Geometry"
> --------------------------------------
>
>                 Key: NUMBERS-77
>                 URL: https://issues.apache.org/jira/browse/NUMBERS-77
>             Project: Commons Numbers
>          Issue Type: Task
>            Reporter: Gilles Sadowski
>            Priority: Major
>             Fix For: 1.1
>
>         Attachments: NUMBERS-77.diff
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> "Commons Geometry" defines utilities that would be a better fit in this 
> component.
> Duplication of general-purpose codes should be avoided, in order to benefit 
> from consolidated usage (bug reporting, performance enhancements, ...).



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

Reply via email to