Home
last modified time | relevance | path

Searched refs:MathUtils (Results 1 – 25 of 39) sorted by relevance

12

/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/
DStatisticalSummaryValues.java22 import org.apache.commons.math.util.MathUtils;
140 return MathUtils.equalsIncludingNaN(stat.getMax(), getMax()) && in equals()
141 MathUtils.equalsIncludingNaN(stat.getMean(), getMean()) && in equals()
142 MathUtils.equalsIncludingNaN(stat.getMin(), getMin()) && in equals()
143 MathUtils.equalsIncludingNaN(stat.getN(), getN()) && in equals()
144 MathUtils.equalsIncludingNaN(stat.getSum(), getSum()) && in equals()
145 MathUtils.equalsIncludingNaN(stat.getVariance(), getVariance()); in equals()
155 int result = 31 + MathUtils.hash(getMax()); in hashCode()
156 result = result * 31 + MathUtils.hash(getMean()); in hashCode()
157 result = result * 31 + MathUtils.hash(getMin()); in hashCode()
[all …]
DMultivariateSummaryStatistics.java34 import org.apache.commons.math.util.MathUtils;
376 return MathUtils.equalsIncludingNaN(stat.getGeometricMean(), getGeometricMean()) && in equals()
377 MathUtils.equalsIncludingNaN(stat.getMax(), getMax()) && in equals()
378 MathUtils.equalsIncludingNaN(stat.getMean(), getMean()) && in equals()
379 MathUtils.equalsIncludingNaN(stat.getMin(), getMin()) && in equals()
380 MathUtils.equalsIncludingNaN(stat.getN(), getN()) && in equals()
381 MathUtils.equalsIncludingNaN(stat.getSum(), getSum()) && in equals()
382 MathUtils.equalsIncludingNaN(stat.getSumSq(), getSumSq()) && in equals()
383 MathUtils.equalsIncludingNaN(stat.getSumLog(), getSumLog()) && in equals()
394 int result = 31 + MathUtils.hash(getGeometricMean()); in hashCode()
[all …]
DSummaryStatistics.java32 import org.apache.commons.math.util.MathUtils;
365 return MathUtils.equalsIncludingNaN(stat.getGeometricMean(), getGeometricMean()) && in equals()
366 MathUtils.equalsIncludingNaN(stat.getMax(), getMax()) && in equals()
367 MathUtils.equalsIncludingNaN(stat.getMean(), getMean()) && in equals()
368 MathUtils.equalsIncludingNaN(stat.getMin(), getMin()) && in equals()
369 MathUtils.equalsIncludingNaN(stat.getN(), getN()) && in equals()
370 MathUtils.equalsIncludingNaN(stat.getSum(), getSum()) && in equals()
371 MathUtils.equalsIncludingNaN(stat.getSumsq(), getSumsq()) && in equals()
372 MathUtils.equalsIncludingNaN(stat.getVariance(), getVariance()); in equals()
381 int result = 31 + MathUtils.hash(getGeometricMean()); in hashCode()
[all …]
DAbstractStorelessUnivariateStatistic.java21 import org.apache.commons.math.util.MathUtils;
169 return MathUtils.equalsIncludingNaN(stat.getResult(), this.getResult()) && in equals()
170 MathUtils.equalsIncludingNaN(stat.getN(), this.getN()); in equals()
180 return 31* (31 + MathUtils.hash(getResult())) + MathUtils.hash(getN()); in hashCode()
/external/apache-commons-math/src/main/java/org/apache/commons/math/exception/
DNonMonotonousSequenceException.java19 import org.apache.commons.math.util.MathUtils;
37 private final MathUtils.OrderDirection direction;
63 this(wrong, previous, index, MathUtils.OrderDirection.INCREASING, true); in NonMonotonousSequenceException()
80 MathUtils.OrderDirection direction, in NonMonotonousSequenceException()
82 super(direction == MathUtils.OrderDirection.INCREASING ? in NonMonotonousSequenceException()
100 public MathUtils.OrderDirection getDirection() { in getDirection()
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DFraction.java26 import org.apache.commons.math.util.MathUtils;
270 final int d = MathUtils.gcd(num, den); in Fraction()
489 int d1 = MathUtils.gcd(denominator, fraction.denominator); in addSub()
492 int uvp = MathUtils.mulAndCheck(numerator, fraction.denominator); in addSub()
493 int upv = MathUtils.mulAndCheck(fraction.numerator, denominator); in addSub()
495 (isAdd ? MathUtils.addAndCheck(uvp, upv) : in addSub()
496 MathUtils.subAndCheck(uvp, upv), in addSub()
497 MathUtils.mulAndCheck(denominator, fraction.denominator)); in addSub()
510 int d2 = (tmodd1==0)?d1:MathUtils.gcd(tmodd1, d1); in addSub()
519 MathUtils.mulAndCheck(denominator/d1, in addSub()
[all …]
DBigFraction.java26 import org.apache.commons.math.util.MathUtils;
959 return new BigFraction(MathUtils.pow(denominator, -exponent), in pow()
960 MathUtils.pow(numerator, -exponent)); in pow()
962 return new BigFraction(MathUtils.pow(numerator, exponent), in pow()
963 MathUtils.pow(denominator, exponent)); in pow()
979 return new BigFraction(MathUtils.pow(denominator, eNeg), in pow()
980 MathUtils.pow(numerator, eNeg)); in pow()
982 return new BigFraction(MathUtils.pow(numerator, exponent), in pow()
983 MathUtils.pow(denominator, exponent)); in pow()
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
DComplex.java27 import org.apache.commons.math.util.MathUtils;
284 return 37 * (17 * MathUtils.hash(imaginary) + in hashCode()
285 MathUtils.hash(real)); in hashCode()
551 return createComplex(FastMath.cos(real) * MathUtils.cosh(imaginary), in cos()
552 -FastMath.sin(real) * MathUtils.sinh(imaginary)); in cos()
585 return createComplex(MathUtils.cosh(real) * FastMath.cos(imaginary), in cosh()
586 MathUtils.sinh(real) * FastMath.sin(imaginary)); in cosh()
717 return createComplex(FastMath.sin(real) * MathUtils.cosh(imaginary), in sin()
718 FastMath.cos(real) * MathUtils.sinh(imaginary)); in sin()
751 return createComplex(MathUtils.sinh(real) * FastMath.cos(imaginary), in sinh()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/
DRiddersSolver.java24 import org.apache.commons.math.util.MathUtils;
203 final double correction = (MathUtils.sign(y2) * MathUtils.sign(y3)) * in solve()
222 if (MathUtils.sign(y1) + MathUtils.sign(y) == 0.0) { in solve()
232 if (MathUtils.sign(y2) + MathUtils.sign(y) == 0.0) { in solve()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/
DSimplexSolver.java25 import org.apache.commons.math.util.MathUtils;
65 if (MathUtils.compareTo(tableau.getEntry(0, i), minValue, epsilon) < 0) { in getPivotColumn()
86 if (MathUtils.compareTo(entry, 0, epsilon) > 0) { in getPivotRow()
88 if (MathUtils.equals(ratio, minRatio, epsilon)) { in getPivotRow()
106 if (MathUtils.equals(tableau.getEntry(row, column), 1, epsilon) && in getPivotRow()
165 if (!MathUtils.equals(tableau.getEntry(0, tableau.getRhsOffset()), 0, epsilon)) { in solvePhase1()
DSimplexTableau.java36 import org.apache.commons.math.util.MathUtils;
288 if (MathUtils.equals(getEntry(i, col), 1.0, epsilon) && (row == null)) { in getBasicRow()
290 } else if (!MathUtils.equals(getEntry(i, col), 0.0, epsilon)) { in getBasicRow()
311 if (MathUtils.compareTo(tableau.getEntry(0, i), 0, epsilon) > 0) { in dropPhase1Objective()
356 if (MathUtils.compareTo(tableau.getEntry(0, i), 0, epsilon) < 0) { in isOptimal()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/
DSimpleScalarValueChecker.java21 import org.apache.commons.math.util.MathUtils;
38 private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON;
41 private static final double DEFAULT_ABSOLUTE_THRESHOLD = 100 * MathUtils.SAFE_MIN;
DSimpleRealPointChecker.java21 import org.apache.commons.math.util.MathUtils;
38 private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON;
41 private static final double DEFAULT_ABSOLUTE_THRESHOLD = 100 * MathUtils.SAFE_MIN;
DSimpleVectorialValueChecker.java21 import org.apache.commons.math.util.MathUtils;
38 private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON;
41 private static final double DEFAULT_ABSOLUTE_THRESHOLD = 100 * MathUtils.SAFE_MIN;
DSimpleVectorialPointChecker.java21 import org.apache.commons.math.util.MathUtils;
38 private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON;
41 private static final double DEFAULT_ABSOLUTE_THRESHOLD = 100 * MathUtils.SAFE_MIN;
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DSaddlePointExpansion.java21 import org.apache.commons.math.util.MathUtils;
49 private static final double HALF_LOG_2_PI = 0.5 * FastMath.log(MathUtils.TWO_PI);
196 double f = (MathUtils.TWO_PI * x * (n - x)) / n; in logBinomialProbability()
DHypergeometricDistributionImpl.java24 import org.apache.commons.math.util.MathUtils;
229 return FastMath.exp(MathUtils.binomialCoefficientLog(m, x) + in probability()
230 MathUtils.binomialCoefficientLog(n - m, k - x) - in probability()
231 MathUtils.binomialCoefficientLog(n, k)); in probability()
DPascalDistributionImpl.java25 import org.apache.commons.math.util.MathUtils;
180 ret = MathUtils.binomialCoefficientDouble(x + in probability()
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/interpolation/
DSmoothingBicubicSplineInterpolator.java22 import org.apache.commons.math.util.MathUtils;
23 import org.apache.commons.math.util.MathUtils.OrderDirection;
61 MathUtils.checkOrder(xval, OrderDirection.INCREASING, true); in interpolate()
62 MathUtils.checkOrder(yval, OrderDirection.INCREASING, true); in interpolate()
DSmoothingPolynomialBicubicSplineInterpolator.java22 import org.apache.commons.math.util.MathUtils;
94 MathUtils.checkOrder(xval); in interpolate()
95 MathUtils.checkOrder(yval); in interpolate()
DBicubicSplineInterpolator.java24 import org.apache.commons.math.util.MathUtils;
48 MathUtils.checkOrder(xval); in interpolate()
49 MathUtils.checkOrder(yval); in interpolate()
DTricubicSplineInterpolator.java22 import org.apache.commons.math.util.MathUtils;
47 MathUtils.checkOrder(xval); in interpolate()
48 MathUtils.checkOrder(yval); in interpolate()
49 MathUtils.checkOrder(zval); in interpolate()
DLinearInterpolator.java24 import org.apache.commons.math.util.MathUtils;
57 MathUtils.checkOrder(x); in interpolate()
DSplineInterpolator.java24 import org.apache.commons.math.util.MathUtils;
80 MathUtils.checkOrder(x); in interpolate()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/clustering/
DEuclideanIntegerPoint.java23 import org.apache.commons.math.util.MathUtils;
57 return MathUtils.distance(point, p.getPoint()); in distanceFrom()

12