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
|
||||
protected double calculateNumericalMean() {
|
||||
final double shape = getShape();
|
||||
final double scale = getScale();
|
||||
final double sh = getShape();
|
||||
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
|
||||
protected double calculateNumericalVariance() {
|
||||
final double shape = getShape();
|
||||
final double scale = getScale();
|
||||
final double mean = getNumericalMean();
|
||||
final double sh = getShape();
|
||||
final double sc = getScale();
|
||||
final double mn = getNumericalMean();
|
||||
|
||||
return (scale * scale) *
|
||||
FastMath.exp(Gamma.logGamma(1 + (2 / shape))) -
|
||||
(mean * mean);
|
||||
return (sc * sc) *
|
||||
FastMath.exp(Gamma.logGamma(1 + (2 / sh))) -
|
||||
(mn * mn);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean isSupportLowerBoundInclusive() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean isSupportUpperBoundInclusive() {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue