Add missing @Override marker
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003351 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
93cbe58156
commit
5fb05a5e37
|
@ -70,6 +70,7 @@ public class SmoothingPolynomialBicubicSplineInterpolator
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public BicubicSplineInterpolatingFunction interpolate(final double[] xval,
|
||||
final double[] yval,
|
||||
final double[][] fval)
|
||||
|
|
|
@ -94,31 +94,37 @@ public class DfpDec extends Dfp {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public Dfp newInstance() {
|
||||
return new DfpDec(getField());
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public Dfp newInstance(final byte x) {
|
||||
return new DfpDec(getField(), x);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public Dfp newInstance(final int x) {
|
||||
return new DfpDec(getField(), x);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public Dfp newInstance(final long x) {
|
||||
return new DfpDec(getField(), x);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public Dfp newInstance(final double x) {
|
||||
return new DfpDec(getField(), x);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public Dfp newInstance(final Dfp d) {
|
||||
|
||||
// make sure we don't mix number with different precision
|
||||
|
@ -134,11 +140,13 @@ public class DfpDec extends Dfp {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public Dfp newInstance(final String s) {
|
||||
return new DfpDec(getField(), s);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public Dfp newInstance(final byte sign, final byte nans) {
|
||||
return new DfpDec(getField(), sign, nans);
|
||||
}
|
||||
|
@ -153,6 +161,7 @@ public class DfpDec extends Dfp {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
protected int round(int in) {
|
||||
|
||||
int msb = mant[mant.length-1];
|
||||
|
@ -280,6 +289,7 @@ public class DfpDec extends Dfp {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public Dfp nextAfter(Dfp x) {
|
||||
|
||||
final String trapName = "nextAfter";
|
||||
|
|
|
@ -50,6 +50,7 @@ public class DummyLocalizable implements Localizable {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public String toString() {
|
||||
return source;
|
||||
}
|
||||
|
|
|
@ -68,6 +68,7 @@ public class SimpleRealPointChecker
|
|||
* @param current Best point in the current iteration.
|
||||
* @return {@code true} if the algorithm has converged.
|
||||
*/
|
||||
@Override
|
||||
public boolean converged(final int iteration,
|
||||
final RealPointValuePair previous,
|
||||
final RealPointValuePair current) {
|
||||
|
|
|
@ -68,6 +68,7 @@ public class SimpleScalarValueChecker
|
|||
* @param current Best point in the current iteration.
|
||||
* @return {@code true} if the algorithm has converged.
|
||||
*/
|
||||
@Override
|
||||
public boolean converged(final int iteration,
|
||||
final RealPointValuePair previous,
|
||||
final RealPointValuePair current) {
|
||||
|
|
|
@ -67,6 +67,7 @@ public class SimpleVectorialPointChecker
|
|||
* @param current Best point in the current iteration.
|
||||
* @return {@code true} if the algorithm has converged.
|
||||
*/
|
||||
@Override
|
||||
public boolean converged(final int iteration,
|
||||
final VectorialPointValuePair previous,
|
||||
final VectorialPointValuePair current) {
|
||||
|
|
|
@ -69,6 +69,7 @@ public class SimpleVectorialValueChecker
|
|||
* @param current Best point in the current iteration.
|
||||
* @return {@code true} if the algorithm has converged.
|
||||
*/
|
||||
@Override
|
||||
public boolean converged(final int iteration,
|
||||
final VectorialPointValuePair previous,
|
||||
final VectorialPointValuePair current) {
|
||||
|
|
|
@ -191,6 +191,7 @@ public abstract class DirectSearchOptimizer
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
protected RealPointValuePair doOptimize()
|
||||
throws FunctionEvaluationException {
|
||||
|
||||
|
|
|
@ -232,6 +232,7 @@ public abstract class AbstractLeastSquaresOptimizer
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public VectorialPointValuePair optimize(final DifferentiableMultivariateVectorialFunction f,
|
||||
final double[] target, final double[] weights,
|
||||
final double[] startPoint)
|
||||
|
|
|
@ -74,6 +74,7 @@ public abstract class AbstractScalarDifferentiableOptimizer
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public RealPointValuePair optimize(final DifferentiableMultivariateRealFunction f,
|
||||
final GoalType goalType,
|
||||
final double[] startPoint)
|
||||
|
|
|
@ -85,6 +85,7 @@ public class BrentOptimizer extends AbstractUnivariateRealOptimizer {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
protected UnivariateRealPointValuePair doOptimize()
|
||||
throws FunctionEvaluationException {
|
||||
final boolean isMinim = getGoalType() == GoalType.MINIMIZE;
|
||||
|
|
|
@ -137,6 +137,7 @@ public abstract class AbstractWell extends BitsStreamGenerator implements Serial
|
|||
* generator built with the same seed.</p>
|
||||
* @param seed the initial seed (32 bits integer)
|
||||
*/
|
||||
@Override
|
||||
public void setSeed(final int seed) {
|
||||
setSeed(new int[] { seed });
|
||||
}
|
||||
|
@ -147,6 +148,7 @@ public abstract class AbstractWell extends BitsStreamGenerator implements Serial
|
|||
* @param seed the initial seed (32 bits integers array), if null
|
||||
* the seed of the generator will be related to the current time
|
||||
*/
|
||||
@Override
|
||||
public void setSeed(final int[] seed) {
|
||||
|
||||
if (seed == null) {
|
||||
|
@ -172,11 +174,13 @@ public abstract class AbstractWell extends BitsStreamGenerator implements Serial
|
|||
* generator built with the same seed.</p>
|
||||
* @param seed the initial seed (64 bits integer)
|
||||
*/
|
||||
@Override
|
||||
public void setSeed(final long seed) {
|
||||
setSeed(new int[] { (int) (seed >>> 32), (int) (seed & 0xffffffffl) });
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
protected abstract int next(final int bits);
|
||||
|
||||
}
|
||||
|
|
|
@ -80,6 +80,7 @@ public class Well1024a extends AbstractWell {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
protected int next(final int bits) {
|
||||
|
||||
final int indexRm1 = iRm1[index];
|
||||
|
|
|
@ -80,6 +80,7 @@ public class Well19937a extends AbstractWell {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
protected int next(final int bits) {
|
||||
|
||||
final int indexRm1 = iRm1[index];
|
||||
|
|
|
@ -80,6 +80,7 @@ public class Well19937c extends AbstractWell {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
protected int next(final int bits) {
|
||||
|
||||
final int indexRm1 = iRm1[index];
|
||||
|
|
|
@ -80,6 +80,7 @@ public class Well44497a extends AbstractWell {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
protected int next(final int bits) {
|
||||
|
||||
final int indexRm1 = iRm1[index];
|
||||
|
|
|
@ -80,6 +80,7 @@ public class Well44497b extends AbstractWell {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
protected int next(final int bits) {
|
||||
|
||||
// compute raw value given by WELL44497a generator
|
||||
|
|
|
@ -80,6 +80,7 @@ public class Well512a extends AbstractWell {
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
protected int next(final int bits) {
|
||||
|
||||
final int indexRm1 = iRm1[index];
|
||||
|
|
|
@ -292,6 +292,7 @@ public class MultidimensionalCounter implements Iterable<Integer> {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
for (int i = 0; i < dimension; i++) {
|
||||
|
|
|
@ -51,38 +51,47 @@ public class Decimal10 extends DfpDec {
|
|||
super(factory, sign, nans);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dfp newInstance() {
|
||||
return new Decimal10(getField());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dfp newInstance(final byte x) {
|
||||
return new Decimal10(getField(), x);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dfp newInstance(final int x) {
|
||||
return new Decimal10(getField(), x);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dfp newInstance(final long x) {
|
||||
return new Decimal10(getField(), x);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dfp newInstance(final double x) {
|
||||
return new Decimal10(getField(), x);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dfp newInstance(final Dfp d) {
|
||||
return new Decimal10(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dfp newInstance(final String s) {
|
||||
return new Decimal10(getField(), s);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dfp newInstance(final byte sign, final byte nans) {
|
||||
return new Decimal10(getField(), sign, nans);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getDecimalDigits() {
|
||||
return 10;
|
||||
}
|
||||
|
|
|
@ -85,6 +85,7 @@ public class ProductTest extends StorelessUnivariateStatisticAbstractTest{
|
|||
assertEquals(expectedValue(), product.evaluate(testArray, unitWeightsArray, 0, testArray.length), getTolerance());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkClearValue(StorelessUnivariateStatistic statistic){
|
||||
assertEquals(1, statistic.getResult(), 0);
|
||||
}
|
||||
|
|
|
@ -81,6 +81,7 @@ public class SumLogTest extends StorelessUnivariateStatisticAbstractTest{
|
|||
assertTrue(Double.isNaN(sum.getResult()));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkClearValue(StorelessUnivariateStatistic statistic){
|
||||
assertEquals(0, statistic.getResult(), 0);
|
||||
}
|
||||
|
|
|
@ -67,6 +67,7 @@ public class SumSqTest extends StorelessUnivariateStatisticAbstractTest{
|
|||
assertTrue(Double.isNaN(sumSq.getResult()));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkClearValue(StorelessUnivariateStatistic statistic){
|
||||
assertEquals(0, statistic.getResult(), 0);
|
||||
}
|
||||
|
|
|
@ -75,6 +75,7 @@ public class SumTest extends StorelessUnivariateStatisticAbstractTest{
|
|||
assertEquals(expectedValue(), sum.evaluate(testArray, unitWeightsArray, 0, testArray.length), getTolerance());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkClearValue(StorelessUnivariateStatistic statistic){
|
||||
assertEquals(0, statistic.getResult(), 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue