Home
last modified time | relevance | path

Searched refs:maxIterations (Results 1 – 25 of 38) sorted by relevance

12

/external/apache-commons-math/src/main/java/org/apache/commons/math/
DMaxIterationsExceededException.java38 private final int maxIterations; field in MaxIterationsExceededException
44 public MaxIterationsExceededException(final int maxIterations) { in MaxIterationsExceededException() argument
45 super(LocalizedFormats.MAX_ITERATIONS_EXCEEDED, maxIterations); in MaxIterationsExceededException()
46 this.maxIterations = maxIterations; in MaxIterationsExceededException()
58 public MaxIterationsExceededException(final int maxIterations, in MaxIterationsExceededException() argument
60 this(maxIterations, new DummyLocalizable(pattern), arguments); in MaxIterationsExceededException()
71 public MaxIterationsExceededException(final int maxIterations, in MaxIterationsExceededException() argument
74 this.maxIterations = maxIterations; in MaxIterationsExceededException()
81 return maxIterations; in getMaxIterations()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/
DAbstractLinearOptimizer.java65 private int maxIterations; field in AbstractLinearOptimizer
78 public void setMaxIterations(int maxIterations) { in setMaxIterations() argument
79 this.maxIterations = maxIterations; in setMaxIterations()
84 return maxIterations; in getMaxIterations()
98 if (++iterations > maxIterations) { in incrementIterationsCounter()
99 throw new OptimizationException(new MaxIterationsExceededException(maxIterations)); in incrementIterationsCounter()
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DPoissonDistributionImpl.java65 private int maxIterations = DEFAULT_MAX_ITERATIONS; field in PoissonDistributionImpl
92 public PoissonDistributionImpl(double p, double epsilon, int maxIterations) { in PoissonDistributionImpl() argument
95 this.maxIterations = maxIterations; in PoissonDistributionImpl()
117 public PoissonDistributionImpl(double p, int maxIterations) { in PoissonDistributionImpl() argument
119 this.maxIterations = maxIterations; in PoissonDistributionImpl()
219 return Gamma.regularizedGammaQ((double) x + 1, mean, epsilon, maxIterations); in cumulativeProbability()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/general/
DAbstractScalarDifferentiableOptimizer.java61 private int maxIterations; field in AbstractScalarDifferentiableOptimizer
92 public void setMaxIterations(int maxIterations) { in setMaxIterations() argument
93 this.maxIterations = maxIterations; in setMaxIterations()
98 return maxIterations; in getMaxIterations()
142 if (++iterations > maxIterations) { in incrementIterationsCounter()
143 throw new OptimizationException(new MaxIterationsExceededException(maxIterations)); in incrementIterationsCounter()
DAbstractLeastSquaresOptimizer.java99 private int maxIterations; field in AbstractLeastSquaresOptimizer
130 public void setMaxIterations(int maxIterations) { in setMaxIterations() argument
131 this.maxIterations = maxIterations; in setMaxIterations()
136 return maxIterations; in getMaxIterations()
180 if (++iterations > maxIterations) { in incrementIterationsCounter()
181 throw new OptimizationException(new MaxIterationsExceededException(maxIterations)); in incrementIterationsCounter()
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/
DBeta.java89 int maxIterations) throws MathException in regularizedBeta() argument
91 return regularizedBeta(x, a, b, DEFAULT_EPSILON, maxIterations); in regularizedBeta()
118 final double b, double epsilon, int maxIterations) throws MathException in regularizedBeta() argument
127 ret = 1.0 - regularizedBeta(1.0 - x, b, a, epsilon, maxIterations); in regularizedBeta()
153 FastMath.log(a) - logBeta(a, b, epsilon, maxIterations)) * in regularizedBeta()
154 1.0 / fraction.evaluate(x, epsilon, maxIterations); in regularizedBeta()
189 int maxIterations) { in logBeta() argument
DGamma.java161 int maxIterations) in regularizedGammaP() argument
173 ret = 1.0 - regularizedGammaQ(a, x, epsilon, maxIterations); in regularizedGammaP()
179 … while (FastMath.abs(an/sum) > epsilon && n < maxIterations && sum < Double.POSITIVE_INFINITY) { in regularizedGammaP()
187 if (n >= maxIterations) { in regularizedGammaP()
188 throw new MaxIterationsExceededException(maxIterations); in regularizedGammaP()
238 int maxIterations) in regularizedGammaQ() argument
250 ret = 1.0 - regularizedGammaP(a, x, epsilon, maxIterations); in regularizedGammaQ()
266 ret = 1.0 / cf.evaluate(x, epsilon, maxIterations); in regularizedGammaQ()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/univariate/
DBracketFinder.java46 private final int maxIterations; field in BracketFinder
96 int maxIterations) { in BracketFinder() argument
100 if (maxIterations <= 0) { in BracketFinder()
101 throw new NotStrictlyPositiveException(maxIterations); in BracketFinder()
105 this.maxIterations = maxIterations; in BracketFinder()
145 if (++iterations > maxIterations) { in search()
146 throw new MaxIterationsExceededException(maxIterations); in search()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/
DMultiStartDifferentiableMultivariateRealOptimizer.java47 private int maxIterations; field in MultiStartDifferentiableMultivariateRealOptimizer
127 public void setMaxIterations(int maxIterations) { in setMaxIterations() argument
128 this.maxIterations = maxIterations; in setMaxIterations()
133 return maxIterations; in getMaxIterations()
186 optimizer.setMaxIterations(maxIterations - totalIterations); in optimize()
DMultiStartMultivariateRealOptimizer.java47 private int maxIterations; field in MultiStartMultivariateRealOptimizer
122 public void setMaxIterations(int maxIterations) { in setMaxIterations() argument
123 this.maxIterations = maxIterations; in setMaxIterations()
128 return maxIterations; in getMaxIterations()
175 optimizer.setMaxIterations(maxIterations - totalIterations); in optimize()
DMultiStartDifferentiableMultivariateVectorialOptimizer.java50 private int maxIterations; field in MultiStartDifferentiableMultivariateVectorialOptimizer
131 public void setMaxIterations(int maxIterations) { in setMaxIterations() argument
132 this.maxIterations = maxIterations; in setMaxIterations()
137 return maxIterations; in getMaxIterations()
190 optimizer.setMaxIterations(maxIterations - totalIterations); in optimize()
DMultiStartUnivariateRealOptimizer.java48 private int maxIterations; field in MultiStartUnivariateRealOptimizer
113 return maxIterations; in getMaximalIterationCount()
153 this.maxIterations = count; in setMaximalIterationCount()
240 optimizer.setMaximalIterationCount(maxIterations - totalIterations); in optimize()
DDifferentiableMultivariateVectorialOptimizer.java39 void setMaxIterations(int maxIterations); in setMaxIterations() argument
DMultivariateRealOptimizer.java38 void setMaxIterations(int maxIterations); in setMaxIterations() argument
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DContinuedFraction.java96 public double evaluate(double x, int maxIterations) throws MathException { in evaluate() argument
97 return evaluate(x, DEFAULT_EPSILON, maxIterations); in evaluate()
126 public double evaluate(double x, double epsilon, int maxIterations) in evaluate() argument
136 while (n < maxIterations && relativeError > epsilon) { in evaluate()
200 if (n >= maxIterations) { in evaluate()
201 throw new MaxIterationsExceededException(maxIterations, in evaluate()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/
DDirectSearchOptimizer.java101 private int maxIterations; field in DirectSearchOptimizer
217 public void setMaxIterations(int maxIterations) { in setMaxIterations() argument
218 this.maxIterations = maxIterations; in setMaxIterations()
223 return maxIterations; in getMaxIterations()
317 if (++iterations > maxIterations) { in incrementIterationsCounter()
318 throw new OptimizationException(new MaxIterationsExceededException(maxIterations)); in incrementIterationsCounter()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DXLocaleDistanceTest.java70 final int maxIterations = 10000; in testTiming() local
72 for (int iterations = maxIterations; iterations > 0; --iterations) { in testTiming()
104 logln("\tlikelyTime:\t" + likelyTime / maxIterations); in testTiming()
105 logln("\toldTime-likelyTime:\t" + oldTimeMinusLikely / maxIterations); in testTiming()
106 logln("totalOld:\t" + oldTime / maxIterations); in testTiming()
107 logln("\tnewLikelyTime:\t" + newLikelyTime / maxIterations); in testTiming()
108 logln("totalNew:\t" + newTime / maxIterations); in testTiming()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DXLocaleDistanceTest.java79 final int maxIterations = 1000; in testTiming() local
81 for (int iterations = maxIterations; iterations > 0; --iterations) { in testTiming()
113 logln("\tlikelyTime:\t" + likelyTime/maxIterations); in testTiming()
114 logln("\toldTime-likelyTime:\t" + oldTimeMinusLikely/maxIterations); in testTiming()
115 logln("totalOld:\t" + oldTime/maxIterations); in testTiming()
116 logln("\tnewLikelyTime:\t" + newLikelyTime/maxIterations); in testTiming()
117 logln("totalNew:\t" + newTime/maxIterations); in testTiming()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DXLocaleDistanceTest.java76 final int maxIterations = 1000; in testTiming() local
78 for (int iterations = maxIterations; iterations > 0; --iterations) { in testTiming()
110 logln("\tlikelyTime:\t" + likelyTime/maxIterations); in testTiming()
111 logln("\toldTime-likelyTime:\t" + oldTimeMinusLikely/maxIterations); in testTiming()
112 logln("totalOld:\t" + oldTime/maxIterations); in testTiming()
113 logln("\tnewLikelyTime:\t" + newLikelyTime/maxIterations); in testTiming()
114 logln("totalNew:\t" + newTime/maxIterations); in testTiming()
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DFraction.java118 public Fraction(double value, double epsilon, int maxIterations) in Fraction() argument
121 this(value, epsilon, Integer.MAX_VALUE, maxIterations); in Fraction()
175 private Fraction(double value, double epsilon, int maxDenominator, int maxIterations) in Fraction() argument
214 … if (n < maxIterations && FastMath.abs(convergent - value) > epsilon && q2 < maxDenominator) { in Fraction()
226 if (n >= maxIterations) { in Fraction()
227 throw new FractionConversionException(value, maxIterations); in Fraction()
DFractionConversionException.java41 public FractionConversionException(double value, int maxIterations) { in FractionConversionException() argument
42 super(LocalizedFormats.FAILED_FRACTION_CONVERSION, value, maxIterations); in FractionConversionException()
DBigFraction.java229 final int maxIterations) in BigFraction() argument
231 this(value, epsilon, Integer.MAX_VALUE, maxIterations); in BigFraction()
269 final int maxDenominator, int maxIterations) in BigFraction() argument
307 if ((n < maxIterations) && in BigFraction()
321 if (n >= maxIterations) { in BigFraction()
322 throw new FractionConversionException(value, maxIterations); in BigFraction()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/clustering/
DKMeansPlusPlusClusterer.java93 final int k, final int maxIterations) { in cluster() argument
99 final int max = (maxIterations < 0) ? Integer.MAX_VALUE : maxIterations; in cluster()
/external/aac/libAACenc/src/
Dqc_data.h162 INT maxIterations; /* Maximum number of allowed iterations before member
282 INT maxIterations; /* Maximum number of allowed iterations before member
/external/eigen/Eigen/src/IterativeLinearSolvers/
DLeastSquareConjugateGradient.h187 m_iterations = Base::maxIterations();
192 m_iterations = Base::maxIterations();

12