mirror of
https://github.com/apache/commons-math.git
synced 2025-02-06 10:09:26 +00:00
Removed illegal @Override.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1200334 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
87f0f14381
commit
710b276e47
@ -65,7 +65,6 @@ public abstract class AbstractContinuousDistribution
|
||||
*
|
||||
* @return 0
|
||||
*/
|
||||
@Override
|
||||
public final double probability(double x) {
|
||||
return 0.0;
|
||||
}
|
||||
@ -73,7 +72,6 @@ public abstract class AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double inverseCumulativeProbability(final double p) throws OutOfRangeException {
|
||||
|
||||
if (p < 0.0 || p > 1.0) {
|
||||
@ -84,7 +82,6 @@ public abstract class AbstractContinuousDistribution
|
||||
// subclasses can override if there is a better method.
|
||||
UnivariateRealFunction rootFindingFunction =
|
||||
new UnivariateRealFunction() {
|
||||
@Override
|
||||
public double value(double x) {
|
||||
return cumulativeProbability(x) - p;
|
||||
}
|
||||
@ -128,7 +125,6 @@ public abstract class AbstractContinuousDistribution
|
||||
* @param seed New seed.
|
||||
* @since 2.2
|
||||
*/
|
||||
@Override
|
||||
public void reseedRandomGenerator(long seed) {
|
||||
randomData.reSeed(seed);
|
||||
}
|
||||
@ -143,7 +139,6 @@ public abstract class AbstractContinuousDistribution
|
||||
* @return a random value.
|
||||
* @since 2.2
|
||||
*/
|
||||
@Override
|
||||
public double sample() {
|
||||
return randomData.nextInversionDeviate(this);
|
||||
}
|
||||
@ -157,7 +152,6 @@ public abstract class AbstractContinuousDistribution
|
||||
* @throws NotStrictlyPositiveException if {@code sampleSize} is not positive.
|
||||
* @since 2.2
|
||||
*/
|
||||
@Override
|
||||
public double[] sample(int sampleSize) {
|
||||
if (sampleSize <= 0) {
|
||||
throw new NotStrictlyPositiveException(LocalizedFormats.NUMBER_OF_SAMPLES,
|
||||
|
@ -57,7 +57,6 @@ public abstract class AbstractDistribution
|
||||
* The default implementation uses the identity
|
||||
* <p>{@code P(x0 < X <= x1) = P(X <= x1) - P(X <= x0)}</p>
|
||||
*/
|
||||
@Override
|
||||
public double cumulativeProbability(double x0, double x1) throws NumberIsTooLargeException {
|
||||
if (x0 > x1) {
|
||||
throw new NumberIsTooLargeException(LocalizedFormats.LOWER_ENDPOINT_ABOVE_UPPER_ENDPOINT,
|
||||
@ -81,7 +80,6 @@ public abstract class AbstractDistribution
|
||||
*
|
||||
* @return the mean or Double.NaN if it's not defined
|
||||
*/
|
||||
@Override
|
||||
public double getNumericalMean() {
|
||||
if (!numericalMeanIsCalculated) {
|
||||
numericalMean = calculateNumericalMean();
|
||||
@ -108,7 +106,6 @@ public abstract class AbstractDistribution
|
||||
* for certain cases in {@link TDistributionImpl}) or
|
||||
* Double.NaN if it's not defined
|
||||
*/
|
||||
@Override
|
||||
public double getNumericalVariance() {
|
||||
if (!numericalVarianceIsCalculated) {
|
||||
numericalVariance = calculateNumericalVariance();
|
||||
@ -124,7 +121,6 @@ public abstract class AbstractDistribution
|
||||
*
|
||||
* @return whether the lower bound of the support is inclusive or not
|
||||
*/
|
||||
@Override
|
||||
public abstract boolean isSupportLowerBoundInclusive();
|
||||
|
||||
/**
|
||||
@ -133,7 +129,6 @@ public abstract class AbstractDistribution
|
||||
*
|
||||
* @return whether the upper bound of the support is inclusive or not
|
||||
*/
|
||||
@Override
|
||||
public abstract boolean isSupportUpperBoundInclusive();
|
||||
|
||||
/**
|
||||
@ -155,7 +150,6 @@ public abstract class AbstractDistribution
|
||||
*
|
||||
* @return whether the support limits given by subclassed methods are connected or not
|
||||
*/
|
||||
@Override
|
||||
public boolean isSupportConnected() {
|
||||
return true;
|
||||
}
|
||||
|
@ -103,7 +103,6 @@ public class BetaDistributionImpl
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double density(double x) {
|
||||
recomputeZ();
|
||||
if (x < 0 || x > 1) {
|
||||
|
@ -89,7 +89,6 @@ public class CauchyDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double cumulativeProbability(double x) {
|
||||
return 0.5 + (FastMath.atan((x - median) / scale) / FastMath.PI);
|
||||
}
|
||||
@ -97,7 +96,6 @@ public class CauchyDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getMedian() {
|
||||
return median;
|
||||
}
|
||||
@ -105,7 +103,6 @@ public class CauchyDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getScale() {
|
||||
return scale;
|
||||
}
|
||||
@ -113,7 +110,6 @@ public class CauchyDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double density(double x) {
|
||||
final double dev = x - median;
|
||||
return (1 / FastMath.PI) * (scale / (dev * dev + scale * scale));
|
||||
|
@ -67,7 +67,6 @@ public class ChiSquaredDistributionImpl
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getDegreesOfFreedom() {
|
||||
return gamma.getAlpha() * 2.0;
|
||||
}
|
||||
@ -75,7 +74,6 @@ public class ChiSquaredDistributionImpl
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double density(double x) {
|
||||
return gamma.density(x);
|
||||
}
|
||||
@ -83,7 +81,6 @@ public class ChiSquaredDistributionImpl
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double cumulativeProbability(double x) {
|
||||
return gamma.cumulativeProbability(x);
|
||||
}
|
||||
|
@ -71,7 +71,6 @@ public class ExponentialDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getMean() {
|
||||
return mean;
|
||||
}
|
||||
@ -79,7 +78,6 @@ public class ExponentialDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double density(double x) {
|
||||
if (x < 0) {
|
||||
return 0;
|
||||
@ -97,7 +95,6 @@ public class ExponentialDistributionImpl extends AbstractContinuousDistribution
|
||||
* Exponential Distribution</a>, equation (1).</li>
|
||||
* </ul>
|
||||
*/
|
||||
@Override
|
||||
public double cumulativeProbability(double x) {
|
||||
double ret;
|
||||
if (x <= 0.0) {
|
||||
|
@ -94,7 +94,6 @@ public class FDistributionImpl
|
||||
*
|
||||
* @since 2.1
|
||||
*/
|
||||
@Override
|
||||
public double density(double x) {
|
||||
final double nhalf = numeratorDegreesOfFreedom / 2;
|
||||
final double mhalf = denominatorDegreesOfFreedom / 2;
|
||||
@ -119,7 +118,6 @@ public class FDistributionImpl
|
||||
* </li>
|
||||
* </ul>
|
||||
*/
|
||||
@Override
|
||||
public double cumulativeProbability(double x) {
|
||||
double ret;
|
||||
if (x <= 0) {
|
||||
@ -200,7 +198,6 @@ public class FDistributionImpl
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getNumeratorDegreesOfFreedom() {
|
||||
return numeratorDegreesOfFreedom;
|
||||
}
|
||||
@ -208,7 +205,6 @@ public class FDistributionImpl
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getDenominatorDegreesOfFreedom() {
|
||||
return denominatorDegreesOfFreedom;
|
||||
}
|
||||
|
@ -92,7 +92,6 @@ public class GammaDistributionImpl extends AbstractContinuousDistribution
|
||||
* </li>
|
||||
* </ul>
|
||||
*/
|
||||
@Override
|
||||
public double cumulativeProbability(double x) {
|
||||
double ret;
|
||||
|
||||
@ -125,7 +124,6 @@ public class GammaDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getAlpha() {
|
||||
return alpha;
|
||||
}
|
||||
@ -133,7 +131,6 @@ public class GammaDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getBeta() {
|
||||
return beta;
|
||||
}
|
||||
@ -141,7 +138,6 @@ public class GammaDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double density(double x) {
|
||||
if (x < 0) {
|
||||
return 0;
|
||||
|
@ -92,7 +92,6 @@ public class NormalDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getMean() {
|
||||
return mean;
|
||||
}
|
||||
@ -100,7 +99,6 @@ public class NormalDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getStandardDeviation() {
|
||||
return standardDeviation;
|
||||
}
|
||||
@ -108,7 +106,6 @@ public class NormalDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double density(double x) {
|
||||
final double x0 = x - mean;
|
||||
final double x1 = x0 / standardDeviation;
|
||||
@ -121,7 +118,6 @@ public class NormalDistributionImpl extends AbstractContinuousDistribution
|
||||
* If {@code x} is more than 40 standard deviations from the mean, 0 or 1 is returned,
|
||||
* as in these cases the actual value is within {@code Double.MIN_VALUE} of 0 or 1.
|
||||
*/
|
||||
@Override
|
||||
public double cumulativeProbability(double x) {
|
||||
final double dev = x - mean;
|
||||
if (FastMath.abs(dev) > 40 * standardDeviation) {
|
||||
|
@ -79,7 +79,6 @@ public class TDistributionImpl
|
||||
*
|
||||
* @return the degrees of freedom.
|
||||
*/
|
||||
@Override
|
||||
public double getDegreesOfFreedom() {
|
||||
return degreesOfFreedom;
|
||||
}
|
||||
@ -87,7 +86,6 @@ public class TDistributionImpl
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double density(double x) {
|
||||
final double n = degreesOfFreedom;
|
||||
final double nPlus1Over2 = (n + 1) / 2;
|
||||
@ -99,7 +97,6 @@ public class TDistributionImpl
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double cumulativeProbability(double x) {
|
||||
double ret;
|
||||
if (x == 0) {
|
||||
|
@ -90,7 +90,6 @@ public class WeibullDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double cumulativeProbability(double x) {
|
||||
double ret;
|
||||
if (x <= 0.0) {
|
||||
@ -104,7 +103,6 @@ public class WeibullDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getShape() {
|
||||
return shape;
|
||||
}
|
||||
@ -112,7 +110,6 @@ public class WeibullDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double getScale() {
|
||||
return scale;
|
||||
}
|
||||
@ -120,7 +117,6 @@ public class WeibullDistributionImpl extends AbstractContinuousDistribution
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public double density(double x) {
|
||||
if (x < 0) {
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user