Fixed checkstyle errors: hidden fields, missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1054306 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
66b2b5ca7d
commit
c10e1c8419
|
@ -252,10 +252,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)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -269,20 +269,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