Skip to content

Commit

Permalink
better method name in QuantileSummaryPresentation
Browse files Browse the repository at this point in the history
  • Loading branch information
joelkuiper committed Apr 12, 2012
1 parent 20daf95 commit b753292
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -49,12 +49,12 @@ public Object getValue() {
double mean = getBean().getQuantile(1);
double lowerCI = getBean().getQuantile(0);
double upperCI = getBean().getQuantile(2);
return format.format(applyExpIfNecessary(mean)) +
" (" + format.format(applyExpIfNecessary(lowerCI)) + ", " +
format.format(applyExpIfNecessary(upperCI)) + ")";
return format.format(transformContinuous(mean)) +
" (" + format.format(transformContinuous(lowerCI)) + ", " +
format.format(transformContinuous(upperCI)) + ")";
}

private double applyExpIfNecessary(double val) {
private double transformContinuous(double val) {
return getBean().isContinuous() ? val : Math.exp(val);
}
}
Expand Down

0 comments on commit b753292

Please sign in to comment.