You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/10/11 13:58:32 UTC
DO NOT REPLY [Bug 37019] New: -
NaN handling in StatsUtil.min, StatsUtil.max methods
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37019>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37019
Summary: NaN handling in StatsUtil.min, StatsUtil.max methods
Product: Commons
Version: 1.0 Final
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P2
Component: Math
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: Mark.Osborn@research.ge.com
Data with NaN appears to be incorrectly handled in some cases when calculating
min and max using StatsUtil package. See examples below:
data={NaN, 4.0, 5.0, NaN}
max (Apache)=NaN <-- correct.
min (Apache)=NaN <-- correct.
data={4.0, 5.0, NaN}
max (Apache)=NaN <-- correct.
min (Apache)=NaN <-- correct.
data={4.0, 5.0, 7.0}
max (Apache)=7.0 <-- correct.
min (Apache)=4.0 <-- correct.
data={NaN, 4.0, 5.0}
max (Apache)=5.0 <-- incorrect? NaN.
min (Apache)=4.0 <-- incorrect? NaN.
data={2.2343, NaN, NaN, 3435.32}
max (Apache)=3435.32 <-- incorrect? NaN.
min (Apache)=3435.32 <-- incorrect? NaN.
data={3435.32, NaN, NaN, 2.2343}
max (Apache)=2.2343 <-- incorrect? NaN.
min (Apache)=2.2343 <-- incorrect? NaN.
data={NaN, NaN, NaN}
max (Apache)=NaN <-- correct.
min (Apache)=NaN <-- correct.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org