public class NearestAggregator implements Aggregator</BUG>
{
@Override
public double aggregate(double[] values, double nodata)
{
<BUG>boolean data0 = Double.compare(values[0], nodata) != 0;
boolean data1 = Double.compare(values[1], nodata) != 0;
boolean data2 = Double.compare(values[2], nodata) != 0;
boolean data3 = Double.compare(values[3], nodata) != 0;
if (data0)</BUG>
return values[0];

package org.mrgeo.aggregators;
import org.apache.commons.lang3.NotImplementedException;
import org.mrgeo.utils.FloatUtils;
public class NearestAggregator implements Aggregator
{
@Override
public double aggregate(double[] values, double nodata)
{
boolean data0 = FloatUtils.isNotNodata(values[0], nodata);
boolean data1 = FloatUtils.isNotNodata(values[1], nodata);
boolean data2 = FloatUtils.isNotNodata(values[2], nodata);
boolean data3 = FloatUtils.isNotNodata(values[3], nodata);
if (data0)
return values[0];
