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/28 00:44:58 UTC

DO NOT REPLY [Bug 20279] New: - [math] chi-squared distribution (part of the distribution collection)

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=20279>.
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=20279

[math] chi-squared distribution (part of the distribution collection)

           Summary: [math] chi-squared distribution (part of the
                    distribution collection)
           Product: Commons
           Version: 1.0 Alpha
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: brent@worden.org


Here is the begginings of the distribution framework.  It's definately been a 
practice in over-engineering.

It starts with a distribution factory following the abstract factory pattern.  
The value being, if users want to swap out the default distribution 
implementations with their own, why stop them.  The factory is responsible for 
create the distribution instances (only continuous ones for now).

Each distribution has a cummulativeProbabilty method which returns the value of 
the CDF for a given value.  By default, via the abstract distribution base 
class, an inverseCummulativeProbability method is all provided for all 
distributions.  It's implementation is generically handled by applying root 
finding techniques to the cummulativeProbability method.  That way, when new 
distributions are added, authors only need to create the CDF method and the 
inverse is provided automatically.

Currenty, the only distributions are Chi-Squared and Gamma (one actually since 
Chi-Squared is a specialized Gamma) but I have more planned.

FYI, I took the liberty of putting these classes into separate packages to 
limit the package clutter we're starting to experience.  As such I could not 
create a patch file for all my changes.  I will provide a patch for what I can 
and provide a zip archive with all the files in the new packages.

Feel free to modify and include as you see fit.

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