{
float sum = 0;
int count = 0;
for (int i=0; i<values.length; i++)
{
<BUG>if (Float.compare(values[i], nodata) != 0)
{</BUG>
sum += values[i];
count++;
}

{
@Override
public double aggregate(double[] values, double nodata)
{
double sum = 0;
int count = 0;
for (int i=0; i<values.length; i++)
{
if (FloatUtils.isNotNodata(values[i], nodata))
{
sum += values[i];
count++;
