Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

better method name in QuantileSummaryPresentation

  • Loading branch information...
commit b75329297352e9b1459e4fcbb183f55698de6907 1 parent 20daf95
@joelkuiper joelkuiper authored
View
8 application/src/main/java/org/drugis/addis/presentation/QuantileSummaryPresentation.java
@@ -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.
Something went wrong with that request. Please try again.