Fixed checkstyle errors: hidden fields, missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054306 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
78647e53f5
commit
938c46195c
|
@ -298,10 +298,10 @@ public class WeibullDistributionImpl extends AbstractContinuousDistribution
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected double calculateNumericalMean() {
|
protected double calculateNumericalMean() {
|
||||||
final double shape = getShape();
|
final double sh = getShape();
|
||||||
final double scale = getScale();
|
final double sc = getScale();
|
||||||
|
|
||||||
return scale * FastMath.exp(Gamma.logGamma(1 + (1 / shape)));
|
return sc * FastMath.exp(Gamma.logGamma(1 + (1 / sh)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -315,20 +315,26 @@ public class WeibullDistributionImpl extends AbstractContinuousDistribution
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected double calculateNumericalVariance() {
|
protected double calculateNumericalVariance() {
|
||||||
final double shape = getShape();
|
final double sh = getShape();
|
||||||
final double scale = getScale();
|
final double sc = getScale();
|
||||||
final double mean = getNumericalMean();
|
final double mn = getNumericalMean();
|
||||||
|
|
||||||
return (scale * scale) *
|
return (sc * sc) *
|
||||||
FastMath.exp(Gamma.logGamma(1 + (2 / shape))) -
|
FastMath.exp(Gamma.logGamma(1 + (2 / sh))) -
|
||||||
(mean * mean);
|
(mn * mn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isSupportLowerBoundInclusive() {
|
public boolean isSupportLowerBoundInclusive() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isSupportUpperBoundInclusive() {
|
public boolean isSupportUpperBoundInclusive() {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue