Formatting.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534362 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-10-21 20:23:54 +00:00
parent 96d6a416d6
commit 243e7260b9
1 changed files with 5 additions and 6 deletions

View File

@ -290,15 +290,15 @@ public class GammaDistribution extends AbstractRealDistribution {
/*
* Natural calculation.
*/
return densityPrefactor1 * FastMath.exp(-y) *
FastMath.pow(y, shape - 1);
return densityPrefactor1 * FastMath.exp(-y) * FastMath.pow(y, shape - 1);
}
/** {@inheritDoc} **/
@Override
public double logDensity(double x) {
/* see the comment in {@link #density(double)} for computation details
*/
/*
* see the comment in {@link #density(double)} for computation details
*/
if (x < 0) {
return Double.NEGATIVE_INFINITY;
}
@ -316,8 +316,7 @@ public class GammaDistribution extends AbstractRealDistribution {
/*
* Natural calculation.
*/
return logDensityPrefactor1 - y +
FastMath.log(y) * (shape - 1);
return logDensityPrefactor1 - y + FastMath.log(y) * (shape - 1);
}
/**