@Override
        public void aggregate(double value) {
            if ( Double.isNaN(value))
                isNaN = true;
            if ( ! isNaN)
                values.add(value);
        }
If any NaN is added, the result should be NaN
vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java