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
|
@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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -269,20 +269,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