DimensionMismatchException, NotStrictlyPositiveException { validateParameters(param);
DimensionMismatchException, NotStrictlyPositiveException { validateParameters(param);
/** * Computes the value of the sigmoid at {@code x}. * * @param x Value for which the function must be computed. * @param param Values for {@code k}, {@code m}, {@code b}, {@code q}, * {@code a} and {@code n}. * @return the value of the function. * @throws NullArgumentException if {@code param} is {@code null}. * @throws DimensionMismatchException if the size of {@code param} is * not 6. * @throws NotStrictlyPositiveException if {@code param[5] <= 0}. */ public double value(double x, double ... param) throws NullArgumentException, DimensionMismatchException, NotStrictlyPositiveException { validateParameters(param); return Logistic.value(param[1] - x, param[0], param[2], param[3], param[4], 1 / param[5]); }
/** * Computes the value of the sigmoid at {@code x}. * * @param x Value for which the function must be computed. * @param param Values for {@code k}, {@code m}, {@code b}, {@code q}, * {@code a} and {@code n}. * @return the value of the function. * @throws NullArgumentException if {@code param} is {@code null}. * @throws DimensionMismatchException if the size of {@code param} is * not 6. * @throws NotStrictlyPositiveException if {@code param[5] <= 0}. */ public double value(double x, double ... param) throws NullArgumentException, DimensionMismatchException, NotStrictlyPositiveException { validateParameters(param); return Logistic.value(param[1] - x, param[0], param[2], param[3], param[4], 1 / param[5]); }
DimensionMismatchException, NotStrictlyPositiveException { validateParameters(param);
/** * Computes the value of the sigmoid at {@code x}. * * @param x Value for which the function must be computed. * @param param Values for {@code k}, {@code m}, {@code b}, {@code q}, * {@code a} and {@code n}. * @return the value of the function. * @throws NullArgumentException if {@code param} is {@code null}. * @throws DimensionMismatchException if the size of {@code param} is * not 6. * @throws NotStrictlyPositiveException if {@code param[5] <= 0}. */ public double value(double x, double ... param) throws NullArgumentException, DimensionMismatchException, NotStrictlyPositiveException { validateParameters(param); return Logistic.value(param[1] - x, param[0], param[2], param[3], param[4], 1 / param[5]); }