Permalink
Browse files

better method name in QuantileSummaryPresentation

  • Loading branch information...
1 parent 20daf95 commit b75329297352e9b1459e4fcbb183f55698de6907 @joelkuiper joelkuiper committed Apr 12, 2012
@@ -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);
}
}

0 comments on commit b753292

Please sign in to comment.