/** {@inheritDoc} */ public double value(double x) { return value(x - mean, norm, i2s2); }
/** * Computes the value of the learning factor. * * @param numCall Current step of the training task. * @return the value of the function at {@code numCall}. */ public double value(long numCall) { return scale * sigmoid.value(numCall); } }
/** {@inheritDoc} */ public double value(double x) { return value(x, lo, hi); }
/** {@inheritDoc} */ public double value(double x) { return value(omega * x + phase, amplitude); }
/** {@inheritDoc} */ @Override public double value(double x, double ... p) { double v = Double.POSITIVE_INFINITY; try { v = super.value(x, p); } catch (NotStrictlyPositiveException e) { // NOPMD // Do nothing. } return v; }
/** {@inheritDoc} */ @Override public double[] gradient(double x, double ... p) { double[] v = { Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY }; try { v = super.gradient(x, p); } catch (NotStrictlyPositiveException e) { // NOPMD // Do nothing. } return v; } };
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(0); }
/** {@inheritDoc} */ public double value(double x) throws OutOfRangeException { return value(x, lo, hi); }
/** * Computes the value of the harmonic oscillator at {@code x}. * * @param x Value for which the function must be computed. * @param param Values of norm, mean and standard deviation. * @return the value of the function. * @throws NullArgumentException if {@code param} is {@code null}. * @throws DimensionMismatchException if the size of {@code param} is * not 3. */ public double value(double x, double ... param) throws NullArgumentException, DimensionMismatchException { validateParameters(param); return HarmonicOscillator.value(x * param[1] + param[2], param[0]); }
/** * Computes the value of the logit at {@code x}. * * @param x Value for which the function must be computed. * @param param Values of lower bound and higher bounds. * @return the value of the function. * @throws NullArgumentException if {@code param} is {@code null}. * @throws DimensionMismatchException if the size of {@code param} is * not 2. */ public double value(double x, double ... param) throws NullArgumentException, DimensionMismatchException { validateParameters(param); return Logit.value(x, param[0], param[1]); }
/** * Computes the value of the sigmoid at {@code x}. * * @param x Value for which the function must be computed. * @param param Values of lower asymptote and higher asymptote. * @return the value of the function. * @throws NullArgumentException if {@code param} is {@code null}. * @throws DimensionMismatchException if the size of {@code param} is * not 2. */ public double value(double x, double ... param) throws NullArgumentException, DimensionMismatchException { validateParameters(param); return Sigmoid.value(x, param[0], param[1]); }
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Cos(); }
/** {@inheritDoc} */ @Override public double value(double x, double ... p) { double v = Double.POSITIVE_INFINITY; try { v = super.value(x, p); } catch (NotStrictlyPositiveException e) { // NOPMD // Do nothing. } return v; }
/** {@inheritDoc} */ @Override public double[] gradient(double x, double ... p) { double[] v = { Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY }; try { v = super.gradient(x, p); } catch (NotStrictlyPositiveException e) { // NOPMD // Do nothing. } return v; } };
/** {@inheritDoc} */ public double value(double x) { return value(m - x, k, b, q, a, oneOverN); }
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(-1); }
/** {@inheritDoc} */ @Override public double value(double x, double ... p) { double v = Double.POSITIVE_INFINITY; try { v = super.value(x, p); } catch (NotStrictlyPositiveException e) { // NOPMD // Do nothing. } return v; }
/** {@inheritDoc} */ @Override public double[] gradient(double x, double ... p) { double[] v = { Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY }; try { v = super.gradient(x, p); } catch (NotStrictlyPositiveException e) { // NOPMD // Do nothing. } return v; } };