Here are the uses [1] Counting the unique usages, we have these:
2 distribution.PoissonDistribution; 2 distribution.PascalDistribution; 2 distribution.NormalDistribution; 1 util.FastMath; 1 random.RandomGenerator; 1 random.MersenneTwister; 1 primes.Primes; 1 linear.RealMatrix; 1 linear.EigenDecomposition; 1 linear.Array2DRowRealMatrix; 1 distribution.RealDistribution; 1 distribution.IntegerDistribution; 1 analysis.integration.UnivariateIntegrator; 1 analysis.integration.RombergIntegrator; 1 analysis.UnivariateFunction; These are pretty much all to do with statistical distributions. There is a residual EigenDecomposition, but that may be something that Dmitriy has already eliminated. The files that are involved are: 3 EigenSolverWrapper.java 3 DistributionChecks.java 2 UncommonDistributions.java 2 RandomWrapper.java 2 PoissonSamplerTest.java 1 SamplingLongPrimitiveIterator.java 1 SamplingIterator.java 1 RandomUtils.java 1 PoissonSampler.java 1 NormalTest.java 1 BreimanExample.java I will take a quick hack at these to see what can be done easily. [1] find . -name *.java | xargs grep -nH -e math3 ./core/src/main/java/org/apache/mahout/cf/taste/impl/common/SamplingLongPrimitiveIterator.java:23:import org.apache.commons.math3.distribution.PascalDistribution; ./core/src/main/java/org/apache/mahout/clustering/dirichlet/UncommonDistributions.java:20:import org.apache.commons.math3.distribution.NormalDistribution; ./core/src/main/java/org/apache/mahout/clustering/dirichlet/UncommonDistributions.java:21:import org.apache.commons.math3.distribution.RealDistribution; ./core/src/main/java/org/apache/mahout/common/iterator/SamplingIterator.java:24:import org.apache.commons.math3.distribution.PascalDistribution; ./examples/src/main/java/org/apache/mahout/classifier/df/BreimanExample.java:32:import org.apache.commons.math3.util.FastMath; ./math/src/main/java/org/apache/mahout/common/RandomUtils.java:26:import org.apache.commons.math3.primes.Primes; ./math/src/main/java/org/apache/mahout/common/RandomWrapper.java:20:import org.apache.commons.math3.random.MersenneTwister; ./math/src/main/java/org/apache/mahout/common/RandomWrapper.java:21:import org.apache.commons.math3.random.RandomGenerator; ./math/src/main/java/org/apache/mahout/math/random/PoissonSampler.java:21:import org.apache.commons.math3.distribution.PoissonDistribution; ./math/src/main/java/org/apache/mahout/math/ssvd/EigenSolverWrapper.java:19:import org.apache.commons.math3.linear.Array2DRowRealMatrix; ./math/src/main/java/org/apache/mahout/math/ssvd/EigenSolverWrapper.java:20:import org.apache.commons.math3.linear.EigenDecomposition; ./math/src/main/java/org/apache/mahout/math/ssvd/EigenSolverWrapper.java:21:import org.apache.commons.math3.linear.RealMatrix; ./math/src/test/java/org/apache/mahout/math/jet/random/DistributionChecks.java:20:import org.apache.commons.math3.analysis.UnivariateFunction; ./math/src/test/java/org/apache/mahout/math/jet/random/DistributionChecks.java:21:import org.apache.commons.math3.analysis.integration.RombergIntegrator; ./math/src/test/java/org/apache/mahout/math/jet/random/DistributionChecks.java:22:import org.apache.commons.math3.analysis.integration.UnivariateIntegrator; ./math/src/test/java/org/apache/mahout/math/random/NormalTest.java:20:import org.apache.commons.math3.distribution.NormalDistribution; ./math/src/test/java/org/apache/mahout/math/random/PoissonSamplerTest.java:20:import org.apache.commons.math3.distribution.IntegerDistribution; ./math/src/test/java/org/apache/mahout/math/random/PoissonSamplerTest.java:21:import org.apache.commons.math3.distribution.PoissonDistribution; On Mon, Aug 12, 2013 at 2:11 PM, Dmitriy Lyubimov <dlie...@gmail.com> wrote: > hm. so it crept in. > > As far back as i can recollect, we tried to minimize those and the only > limiting factor for us were decompositions. Now all decompositions are > available natively to Mahout, so perhaps it is time to review these > occurrences. > > > On Mon, Aug 12, 2013 at 2:03 PM, Stevo Slavić <ssla...@gmail.com> wrote: > > > There are 30 matches when searching for "org.apache.commons.math3" in > > Mahout java files. > > > > > > On Fri, Aug 9, 2013 at 8:34 PM, Dmitriy Lyubimov <dlie...@gmail.com> > > wrote: > > > > > FYI SSVD does not have that dependency anymore (thanks to fixes to > > > EigenSolver in Mahout). If there are no more methods using it, it can > be > > > deleted from pom. > > > > > > -d > > > > > >