Fixed checkstyle errors: hidden fields, missing javadoc.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1054280 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2011-01-01 20:15:27 +00:00
parent a86b4b6182
commit 3728db280a
1 changed files with 12 additions and 6 deletions

View File

@ -220,8 +220,8 @@ public class BetaDistributionImpl
*/
@Override
protected double calculateNumericalMean() {
final double alpha = getAlpha();
return alpha / (alpha + getBeta());
final double a = getAlpha();
return a / (a + getBeta());
}
/**
@ -236,17 +236,23 @@ public class BetaDistributionImpl
*/
@Override
protected double calculateNumericalVariance() {
final double alpha = getAlpha();
final double beta = getBeta();
final double alphabetasum = alpha + beta;
return (alpha * beta) / ((alphabetasum * alphabetasum) * (alphabetasum + 1));
final double a = getAlpha();
final double b = getBeta();
final double alphabetasum = a + b;
return (a * b) / ((alphabetasum * alphabetasum) * (alphabetasum + 1));
}
/**
* {@inheritDoc}
*/
@Override
public boolean isSupportLowerBoundInclusive() {
return false;
}
/**
* {@inheritDoc}
*/
@Override
public boolean isSupportUpperBoundInclusive() {
return false;