/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(1); }
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(-1); }
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(0); }
/** * Uniform sampling of the given range. * * @param min Lower bound of the range. * @param max Upper bound of the range. * @return an initializer such that the features will be initialized with * values within the given range. * @throws org.apache.commons.math3.exception.NumberIsTooLargeException * if {@code min >= max}. */ public static FeatureInitializer uniform(final double min, final double max) { return randomize(new UniformRealDistribution(min, max), function(new Constant(0), 0, 0)); }
/** * Uniform sampling of the given range. * * @param min Lower bound of the range. * @param max Upper bound of the range. * @param rng Random number generator used to draw samples from a * uniform distribution. * @return an initializer such that the features will be initialized with * values within the given range. * @throws org.apache.commons.math3.exception.NumberIsTooLargeException * if {@code min >= max}. */ public static FeatureInitializer uniform(final RandomGenerator rng, final double min, final double max) { return randomize(new UniformRealDistribution(rng, min, max), function(new Constant(0), 0, 0)); }
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(0); }
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(0); }
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(1); }
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(1); }
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(-1); }
/** {@inheritDoc} * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)} */ @Deprecated public DifferentiableUnivariateFunction derivative() { return new Constant(-1); }
/** * Uniform sampling of the given range. * * @param min Lower bound of the range. * @param max Upper bound of the range. * @return an initializer such that the features will be initialized with * values within the given range. * @throws org.apache.commons.math3.exception.NumberIsTooLargeException * if {@code min >= max}. */ public static FeatureInitializer uniform(final double min, final double max) { return randomize(new UniformRealDistribution(min, max), function(new Constant(0), 0, 0)); }
/** * Uniform sampling of the given range. * * @param min Lower bound of the range. * @param max Upper bound of the range. * @param rng Random number generator used to draw samples from a * uniform distribution. * @return an initializer such that the features will be initialized with * values within the given range. * @throws org.apache.commons.math3.exception.NumberIsTooLargeException * if {@code min >= max}. */ public static FeatureInitializer uniform(final RandomGenerator rng, final double min, final double max) { return randomize(new UniformRealDistribution(rng, min, max), function(new Constant(0), 0, 0)); }