Fixed checkstyle errors: hidden fields, missing javadoc.

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

View File

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