/** {@inheritDoc} */ public DerivativeStructure value(final DerivativeStructure t) { DerivativeStructure r = t; for (int i = f.length - 1; i >= 0; i--) { r = f[i].value(r); } return r; }
/** {@inheritDoc} */ public double value(final double t) { double r = t; for (int i = f.length - 1; i >= 0; i--) { r = f[i].value(r); } return r; }
/** {@inheritDoc} */ public double value(final double x) { return f.value(x); }
/** {@inheritDoc} * @throws DimensionMismatchException if functions are not consistent with each other */ public DerivativeStructure value(final DerivativeStructure t) throws DimensionMismatchException { DerivativeStructure r = f[0].value(t); for (int i = 1; i < f.length; i++) { r = r.add(f[i].value(t)); } return r; }
/** * Compute the objective function value. * * @param point Point at which the objective function must be evaluated. * @return the objective function value and derivative at specified point. * @throws TooManyEvaluationsException * if the maximal number of evaluations is exceeded. */ protected DerivativeStructure computeObjectiveValueAndDerivative(double point) throws TooManyEvaluationsException { incrementEvaluationCount(); return function.value(new DerivativeStructure(1, 1, 0, point)); }
/** {@inheritDoc} */ public DerivativeStructure value(final DerivativeStructure t) { DerivativeStructure r = t; for (int i = f.length - 1; i >= 0; i--) { r = f[i].value(r); } return r; }
/** {@inheritDoc} */ public double value(final double t) { double r = t; for (int i = f.length - 1; i >= 0; i--) { r = f[i].value(r); } return r; }
/** {@inheritDoc} */ public DerivativeStructure value(final DerivativeStructure t) { DerivativeStructure r = t; for (int i = f.length - 1; i >= 0; i--) { r = f[i].value(r); } return r; }
/** {@inheritDoc} */ public double value(final double x) { return f.value(x); }
/** {@inheritDoc} */ public double value(final double t) { double r = t; for (int i = f.length - 1; i >= 0; i--) { r = f[i].value(r); } return r; }
/** {@inheritDoc} * @throws DimensionMismatchException if functions are not consistent with each other */ public DerivativeStructure value(final DerivativeStructure t) throws DimensionMismatchException { DerivativeStructure r = f[0].value(t); for (int i = 1; i < f.length; i++) { r = r.add(f[i].value(t)); } return r; }
/** * Compute the objective function value. * * @param point Point at which the objective function must be evaluated. * @return the objective function value and derivative at specified point. * @throws TooManyEvaluationsException * if the maximal number of evaluations is exceeded. */ protected DerivativeStructure computeObjectiveValueAndDerivative(double point) throws TooManyEvaluationsException { incrementEvaluationCount(); return function.value(new DerivativeStructure(1, 1, 0, point)); }