public float aggregate(float[] values, float nodata)
{
Float min = Float.MAX_VALUE;
for (int i=0; i<values.length; i++)
{
<BUG>if (Float.compare(values[i], nodata) != 0)
min = Math.min(min, values[i]);</BUG>
}
return (min == Float.MAX_VALUE) ? nodata : min;
}

public float aggregate(float[] values, float nodata)
{
Float min = Float.MAX_VALUE;
for (int i=0; i<values.length; i++)
{
if (FloatUtils.isNotNodata(values[i], nodata))
min = Math.min(min, values[i]);
}
return (min == Float.MAX_VALUE) ? nodata : min;
}
