{
MLData thresholdedOut = threshold(out, threshold, lowValue, highValue);
acc = (BasicMLData) acc.plus(thresholdedOut);
}
acc = (BasicMLData) acc.times(1.0 / outputs.size());
return threshold(acc, threshold, lowValue, highValue);
}
private MLData threshold(MLData d, double threshold, double lowValue, double highValue) {
MLData result = new BasicMLData(d.size());