Apache Commons Math – Mathematics and Statistics Components
By admin on Nov 9, 2007 in Java, open source
Commons Math is a library of lightweight, self-contained mathematics and statistics components addressing the most common problems not available in the Java programming language or Commons Lang.
As quoted from the website, Apache Commons Math is made up of a small set of math/stat utilities addressing some of the programming problems like the ones in the list below.
- Computing means, variances and other summary statistics for a list of numbers
- Fitting a line to a set of data points using linear regression
- Finding a smooth curve that passes through a collection of points (interpolation)
- Fitting a parametric model to a set of measurements using least-squares methods
- Solving equations involving real-valued functions (i.e. root-finding)
- Solving systems of linear equations
- Solving Ordinary Differential Equations
- Minimizing multi-dimensional functions
- Generating random numbers with more restrictions (e.g distribution, range) than what is possible using the JDK
- Generating random samples and/or datasets that are “like” the data in an input file
- Performing statistical significance tests
- Miscellaneous mathematical functions such as factorials, binomial coefficients and “special functions” (e.g. gamma, beta functions)
Commons Math is divided into fourteen subpackages, based on functionality provided.
- org.apache.commons.math.stat – statistics, statistical tests
- org.apache.commons.math.analysis – rootfinding and interpolation
- org.apache.commons.math.random – random numbers, strings and data generation
- org.apache.commons.math.special – special functions (Gamma, Beta)
- org.apache.commons.math.linear – matrices, solving linear systems
- org.apache.commons.math.util – common math/stat functions extending java.lang.Math
- org.apache.commons.math.complex – complex numbers
- org.apache.commons.math.distribution – probability distributions
- org.apache.commons.math.fraction – rational numbers
- org.apache.commons.math.transform – transform methods (Fast Fourier)
- org.apache.commons.math.geometry – 3D geometry (vectors and rotations)
- org.apache.commons.math.estimation – parametric estimation problems
- org.apache.commons.math.optimization – multi-dimensional functions minimization
- org.apache.commons.math.ode – Ordinary Differential Equations integration
Sorry, comments for this entry are closed at this time.