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 2003/05/31 02:13:51 UTC

DO NOT REPLY [Bug 20377] New: - [math] Adding percentiles to StoredUnivariate, AbstractStoreUnivariate

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20377>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20377

[math] Adding percentiles to StoredUnivariate, AbstractStoreUnivariate

           Summary: [math] Adding percentiles to StoredUnivariate,
                    AbstractStoreUnivariate
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: phil@steitz.com


Attached patches add getPercentile, getSortedValues to StoredUnivariate
interface and provide implementation in AbstractStoreUnivariate.

Sort uses simple shell sort performed directly on a double[] array copy returned
by getValues. 

Percentile definition used does linear interpolation after computing target
position.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org