double[] vals = new double[values.size()];
for (int i = 0; i < values.size(); i++) vals[i] = Math.log10(values.get(i));
double statistic = NormalityTest.anderson_darling_statistic(vals);
double pvalue = NormalityTest.anderson_darling_pvalue(statistic, vals.length);
if (Double.isNaN(pvalue) || pvalue < 0.05) {  // log10 data is normal, so replace original values with the log10 values
<BUG>log.info("BARD experiment id "+bardExptId+"/"+resultType+" is log normal. Histogramming log10 values");

for (int i = 0; i < values.size(); i++) values.set(i, (float) vals[i]);
}</BUG>
List<HBin> bins = calculateHistogram(values);

double[] vals = new double[values.size()];
for (int i = 0; i < values.size(); i++) vals[i] = Math.log10(values.get(i));
double statistic = NormalityTest.anderson_darling_statistic(vals);
double pvalue = NormalityTest.anderson_darling_pvalue(statistic, vals.length);
if (Double.isNaN(pvalue) || pvalue < 0.05) {  // log10 data is normal, so replace original values with the log10 values
log.info("BARD experiment id " + bardExptId + "/" + resultType + " is log normal. Histogramming log10 values");
for (int i = 0; i < values.size(); i++) values.set(i, (float) vals[i]);
useLog = true;
}
List<HBin> bins = calculateHistogram(values);
