/[Apache-SVN]
ViewVC logotype

Revision 140861


Jump to revision: Previous Next
Author: tobrien
Date: Thu May 29 19:34:38 2003 UTC (21 years, 5 months ago)
Changed paths: 14
Log Message:
Contributions from Brent Worden - Bugzilla Issue 20279

* 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 more are planned.


Changed paths

Path Details
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/RootFinding.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/UnivariateFunction.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ChiSquaredDistribution.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ChiSquaredDistributionImpl.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ContinuousDistribution.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/DistributionFactory.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/DistributionFactoryImpl.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/GammaDistribution.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/GammaDistributionImpl.java added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/ added
Directoryjakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26