public double aggregate(final double[][] values, final double weightx, final double weighty,
final double nodata)
{
double s0;
double s1;
<BUG>if (Double.compare(values[0][0], nodata) == 0)
{</BUG>
s0 = values[0][1];
}
<BUG>else if (Double.compare(values[0][1], nodata) == 0)
{</BUG>
s0 = values[0][0];

public double aggregate(final double[][] values, final double weightx, final double weighty,
final double nodata)
{
double s0;
double s1;
if (FloatUtils.isNotNodata(values[0][0], nodata))
{
s0 = values[0][1];
