@Override
public float aggregate(float[] values, float nodata)
{
HashMap<Float,Integer> freqs = new HashMap<Float,Integer>();
for (float val : values) {
<BUG>if (Float.compare(val, nodata) != 0)
{</BUG>
Integer freq = freqs.get(val);
freqs.put(val, (freq == null ? 1 : freq+1));
}

@Override
public double aggregate(double[] values, double nodata)
{
HashMap<Double,Integer> freqs = new HashMap<Double,Integer>();
for (double val : values) {
if (FloatUtils.isNotNodata(val, nodata))
{
Integer freq = freqs.get(val);
freqs.put(val, (freq == null ? 1 : freq+1));
