/** {@inheritDoc} */ public double value(final double x, final double ... parameters) throws NoDataException { return PolynomialFunction.evaluate(parameters, x); } }
/** * Compute the value of the function for the given argument. * <p> * The value returned is </p><p> * {@code coefficients[n] * x^n + ... + coefficients[1] * x + coefficients[0]} * </p> * * @param x Argument for which the function value should be computed. * @return the value of the polynomial at the given point. * @see UnivariateFunction#value(double) */ public double value(double x) { return evaluate(coefficients, x); }
/** {@inheritDoc} */ public double value(final double x, final double ... parameters) throws NoDataException { return PolynomialFunction.evaluate(parameters, x); } }
/** {@inheritDoc} */ public double value(final double x, final double ... parameters) throws NoDataException { return PolynomialFunction.evaluate(parameters, x); } }
/** * Compute the value of the function for the given argument. * <p> * The value returned is </p><p> * {@code coefficients[n] * x^n + ... + coefficients[1] * x + coefficients[0]} * </p> * * @param x Argument for which the function value should be computed. * @return the value of the polynomial at the given point. * @see UnivariateFunction#value(double) */ public double value(double x) { return evaluate(coefficients, x); }
/** * Compute the value of the function for the given argument. * <p> * The value returned is </p><p> * {@code coefficients[n] * x^n + ... + coefficients[1] * x + coefficients[0]} * </p> * * @param x Argument for which the function value should be computed. * @return the value of the polynomial at the given point. * @see UnivariateFunction#value(double) */ public double value(double x) { return evaluate(coefficients, x); }