Missing @Deprecated tags

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1499808 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2013-07-04 17:00:42 +00:00
parent cc15aa3895
commit 07182b1c6f
13 changed files with 19 additions and 0 deletions

View File

@ -23,6 +23,7 @@ package org.apache.commons.math3.analysis;
* @since 2.0 * @since 2.0
* @deprecated as of 3.1 replaced by {@link org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableMatrixFunction} * @deprecated as of 3.1 replaced by {@link org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableMatrixFunction}
*/ */
@Deprecated
public interface DifferentiableUnivariateMatrixFunction public interface DifferentiableUnivariateMatrixFunction
extends UnivariateMatrixFunction { extends UnivariateMatrixFunction {

View File

@ -23,6 +23,7 @@ package org.apache.commons.math3.analysis;
* @since 2.0 * @since 2.0
* @deprecated as of 3.1 replaced by {@link org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableVectorFunction} * @deprecated as of 3.1 replaced by {@link org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableVectorFunction}
*/ */
@Deprecated
public interface DifferentiableUnivariateVectorFunction public interface DifferentiableUnivariateVectorFunction
extends UnivariateVectorFunction { extends UnivariateVectorFunction {

View File

@ -105,6 +105,7 @@ public class FunctionUtils {
* @return the composite function. * @return the composite function.
* @deprecated as of 3.1 replaced by {@link #compose(UnivariateDifferentiableFunction...)} * @deprecated as of 3.1 replaced by {@link #compose(UnivariateDifferentiableFunction...)}
*/ */
@Deprecated
public static DifferentiableUnivariateFunction compose(final DifferentiableUnivariateFunction ... f) { public static DifferentiableUnivariateFunction compose(final DifferentiableUnivariateFunction ... f) {
return new DifferentiableUnivariateFunction() { return new DifferentiableUnivariateFunction() {
/** {@inheritDoc} */ /** {@inheritDoc} */
@ -279,6 +280,7 @@ public class FunctionUtils {
* @return a function that computes the product of the functions. * @return a function that computes the product of the functions.
* @deprecated as of 3.1 replaced by {@link #multiply(UnivariateDifferentiableFunction...)} * @deprecated as of 3.1 replaced by {@link #multiply(UnivariateDifferentiableFunction...)}
*/ */
@Deprecated
public static DifferentiableUnivariateFunction multiply(final DifferentiableUnivariateFunction ... f) { public static DifferentiableUnivariateFunction multiply(final DifferentiableUnivariateFunction ... f) {
return new DifferentiableUnivariateFunction() { return new DifferentiableUnivariateFunction() {
/** {@inheritDoc} */ /** {@inheritDoc} */

View File

@ -26,5 +26,6 @@ import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
* @version $Id$ * @version $Id$
* @deprecated as of 3.1, replaced by {@link UnivariateDifferentiableSolver} * @deprecated as of 3.1, replaced by {@link UnivariateDifferentiableSolver}
*/ */
@Deprecated
public interface DifferentiableUnivariateSolver public interface DifferentiableUnivariateSolver
extends BaseUnivariateSolver<DifferentiableUnivariateFunction> {} extends BaseUnivariateSolver<DifferentiableUnivariateFunction> {}

View File

@ -146,6 +146,7 @@ public interface RealDistribution {
* function returns a non-NaN, non-infinite value there * function returns a non-NaN, non-infinite value there
* @deprecated to be removed in 4.0 * @deprecated to be removed in 4.0
*/ */
@Deprecated
boolean isSupportLowerBoundInclusive(); boolean isSupportLowerBoundInclusive();
/** /**
@ -158,6 +159,7 @@ public interface RealDistribution {
* function returns a non-NaN, non-infinite value there * function returns a non-NaN, non-infinite value there
* @deprecated to be removed in 4.0 * @deprecated to be removed in 4.0
*/ */
@Deprecated
boolean isSupportUpperBoundInclusive(); boolean isSupportUpperBoundInclusive();
/** /**

View File

@ -58,6 +58,7 @@ public abstract class BaseAbstractMultivariateVectorOptimizer<FUNC extends Multi
/** Weight for the least squares cost computation. /** Weight for the least squares cost computation.
* @deprecated * @deprecated
*/ */
@Deprecated
private double[] weight; private double[] weight;
/** Initial guess. */ /** Initial guess. */
private double[] start; private double[] start;

View File

@ -233,6 +233,7 @@ public class CMAESOptimizer
* passed with the call to {@link #optimize(int,MultivariateFunction,GoalType,OptimizationData[]) * passed with the call to {@link #optimize(int,MultivariateFunction,GoalType,OptimizationData[])
* optimize} (whereas in the current code it is set to an undocumented value). * optimize} (whereas in the current code it is set to an undocumented value).
*/ */
@Deprecated
public CMAESOptimizer() { public CMAESOptimizer() {
this(0); this(0);
} }
@ -243,6 +244,7 @@ public class CMAESOptimizer
* passed with the call to {@link #optimize(int,MultivariateFunction,GoalType,OptimizationData[]) * passed with the call to {@link #optimize(int,MultivariateFunction,GoalType,OptimizationData[])
* optimize} (whereas in the current code it is set to an undocumented value).. * optimize} (whereas in the current code it is set to an undocumented value)..
*/ */
@Deprecated
public CMAESOptimizer(int lambda) { public CMAESOptimizer(int lambda) {
this(lambda, null, DEFAULT_MAXITERATIONS, DEFAULT_STOPFITNESS, this(lambda, null, DEFAULT_MAXITERATIONS, DEFAULT_STOPFITNESS,
DEFAULT_ISACTIVECMA, DEFAULT_DIAGONALONLY, DEFAULT_ISACTIVECMA, DEFAULT_DIAGONALONLY,

View File

@ -66,6 +66,7 @@ public class CurveFitter<T extends ParametricUnivariateFunction> {
* @param optimizer optimizer to use for the fitting * @param optimizer optimizer to use for the fitting
* @deprecated as of 3.1 replaced by {@link #CurveFitter(MultivariateDifferentiableVectorOptimizer)} * @deprecated as of 3.1 replaced by {@link #CurveFitter(MultivariateDifferentiableVectorOptimizer)}
*/ */
@Deprecated
public CurveFitter(final DifferentiableMultivariateVectorOptimizer optimizer) { public CurveFitter(final DifferentiableMultivariateVectorOptimizer optimizer) {
this.oldOptimizer = optimizer; this.oldOptimizer = optimizer;
this.optimizer = null; this.optimizer = null;

View File

@ -63,6 +63,7 @@ import org.apache.commons.math3.util.Precision;
* @deprecated As of 3.1 (to be removed in 4.0). * @deprecated As of 3.1 (to be removed in 4.0).
* @since 2.0 * @since 2.0
*/ */
@Deprecated
class SimplexTableau implements Serializable { class SimplexTableau implements Serializable {
/** Column label for negative vars. */ /** Column label for negative vars. */

View File

@ -28,6 +28,7 @@ import org.apache.commons.math3.exception.NumberIsTooLargeException;
* @deprecated to be removed in 4.0. Use {@link RandomDataGenerator} directly * @deprecated to be removed in 4.0. Use {@link RandomDataGenerator} directly
* @version $Id$ * @version $Id$
*/ */
@Deprecated
public interface RandomData { public interface RandomData {
/** /**
* Generates a random string of hex characters of length {@code len}. * Generates a random string of hex characters of length {@code len}.

View File

@ -560,6 +560,7 @@ public class RandomDataImpl implements RandomData, Serializable {
* @since 2.2 * @since 2.2
* @deprecated use the distribution's sample() method * @deprecated use the distribution's sample() method
*/ */
@Deprecated
public double nextInversionDeviate(RealDistribution distribution) public double nextInversionDeviate(RealDistribution distribution)
throws MathIllegalArgumentException { throws MathIllegalArgumentException {
return distribution.inverseCumulativeProbability(nextUniform(0, 1)); return distribution.inverseCumulativeProbability(nextUniform(0, 1));
@ -576,6 +577,7 @@ public class RandomDataImpl implements RandomData, Serializable {
* @since 2.2 * @since 2.2
* @deprecated use the distribution's sample() method * @deprecated use the distribution's sample() method
*/ */
@Deprecated
public int nextInversionDeviate(IntegerDistribution distribution) public int nextInversionDeviate(IntegerDistribution distribution)
throws MathIllegalArgumentException { throws MathIllegalArgumentException {
return distribution.inverseCumulativeProbability(nextUniform(0, 1)); return distribution.inverseCumulativeProbability(nextUniform(0, 1));

View File

@ -105,6 +105,7 @@ public class ValueServer {
* @since 3.0 * @since 3.0
* @deprecated use {@link #ValueServer(RandomGenerator)} * @deprecated use {@link #ValueServer(RandomGenerator)}
*/ */
@Deprecated
public ValueServer(RandomDataImpl randomData) { public ValueServer(RandomDataImpl randomData) {
this.randomData = randomData; this.randomData = randomData;
} }

View File

@ -359,6 +359,7 @@ public class ResizableDoubleArray implements DoubleArray, Serializable {
* {@link #ResizableDoubleArray(int,double,double,ExpansionMode,double[])} * {@link #ResizableDoubleArray(int,double,double,ExpansionMode,double[])}
* instead. * instead.
*/ */
@Deprecated
public ResizableDoubleArray(int initialCapacity, float expansionFactor, public ResizableDoubleArray(int initialCapacity, float expansionFactor,
float contractionCriteria, int expansionMode) throws MathIllegalArgumentException { float contractionCriteria, int expansionMode) throws MathIllegalArgumentException {
this(initialCapacity, this(initialCapacity,
@ -531,6 +532,7 @@ public class ResizableDoubleArray implements DoubleArray, Serializable {
* @deprecated As of 3.1. Please use * @deprecated As of 3.1. Please use
* {@link #checkContractExpand(double,double)} instead. * {@link #checkContractExpand(double,double)} instead.
*/ */
@Deprecated
protected void checkContractExpand(float contraction, float expansion) protected void checkContractExpand(float contraction, float expansion)
throws MathIllegalArgumentException { throws MathIllegalArgumentException {
checkContractExpand((double) contraction, checkContractExpand((double) contraction,
@ -805,6 +807,7 @@ public class ResizableDoubleArray implements DoubleArray, Serializable {
* @deprecated As of 3.1. Return value to be changed to * @deprecated As of 3.1. Return value to be changed to
* {@link ExpansionMode} in 4.0. * {@link ExpansionMode} in 4.0.
*/ */
@Deprecated
public int getExpansionMode() { public int getExpansionMode() {
switch (expansionMode) { switch (expansionMode) {
case MULTIPLICATIVE: case MULTIPLICATIVE: