{
double sum = 0;
int count = 0;
for (final double value : values)
{
<BUG>if (Double.compare(value, nodata) != 0)
{</BUG>
sum += value;
count++;
}

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