This class is a convenience to create custom visitors without defining all methods. This class provides default implementations that do nothing.
868788899091929394
final double absoluteThreshold, final int maxIter) { super(relativeThreshold, absoluteThreshold); if (maxIter <= 0) { throw new NotStrictlyPositiveException(maxIter); } maxIterationCount = maxIter; }
7475767778798081828384
if (optimizer == null || generator == null) { throw new NullArgumentException(); } if (starts < 1) { throw new NotStrictlyPositiveException(starts); } this.optimizer = optimizer; this.starts = starts; this.generator = generator;
7172737475767778798081
protected BaseMultivariateVectorMultiStartOptimizer(final BaseMultivariateVectorOptimizer<FUNC> optimizer, final int starts, final RandomVectorGenerator generator) { if (optimizer == null || generator == null) { throw new NullArgumentException(); } if (starts < 1) { throw new NotStrictlyPositiveException(starts); }
protected BaseMultivariateMultiStartOptimizer(final BaseMultivariateOptimizer<FUNC> optimizer, final int starts, final RandomVectorGenerator generator) { if (optimizer == null || generator == null) { throw new NullArgumentException(); } if (starts < 1) { throw new NotStrictlyPositiveException(starts); }
6667686970717273747576
int upper) throws NumberIsTooLargeException { super(rng); if (lower > upper) { throw new NumberIsTooLargeException( LocalizedFormats.LOWER_BOUND_NOT_BELOW_UPPER_BOUND, lower, upper, true); } this.lower = lower; this.upper = upper;
4445464748495051525354
*/ public SearchInterval(double lo, double hi, double init) { if (lo >= hi) { throw new NumberIsTooLargeException(lo, hi, false); } if (init < lo || init > hi) { throw new OutOfRangeException(init, lo, hi); }
7778798081828384858687888990919293949596
double b) throws NumberIsTooLargeException, NumberIsTooSmallException { super(rng); if (a >= b) { throw new NumberIsTooLargeException( LocalizedFormats.LOWER_BOUND_NOT_BELOW_UPPER_BOUND, a, b, false); } if (c < a) { throw new NumberIsTooSmallException( LocalizedFormats.NUMBER_TOO_SMALL, c, a, true); } if (c > b) { throw new NumberIsTooLargeException( LocalizedFormats.NUMBER_TOO_LARGE, c, b, true); } this.a = a; this.c = c;
123124125126127128129130131132133
* @throws NumberIsTooSmallException if the number of observations * is < 2 */ public double getResult() throws NumberIsTooSmallException { if (n < 2) { throw new NumberIsTooSmallException(LocalizedFormats.INSUFFICIENT_DIMENSION, n, 2, true); } if (biasCorrected) { return covarianceNumerator / (n - 1d); } else {
8283848586878889909192
throw new NumberIsTooLargeException( LocalizedFormats.LOWER_BOUND_NOT_BELOW_UPPER_BOUND, a, b, false); } if (c < a) { throw new NumberIsTooSmallException( LocalizedFormats.NUMBER_TOO_SMALL, c, a, true); } if (c > b) { throw new NumberIsTooLargeException( LocalizedFormats.NUMBER_TOO_LARGE, c, b, true);
7879808182838485868788
double abs, ConvergenceChecker<UnivariatePointValuePair> checker) { super(checker); if (rel < MIN_RELATIVE_TOLERANCE) { throw new NumberIsTooSmallException(rel, MIN_RELATIVE_TOLERANCE, true); } if (abs <= 0) { throw new NotStrictlyPositiveException(abs); }