@Override
    public Object map(Object input) {
        Number n = (Number) input;
        double val = n.doubleValue();
        if (Double.isNaN(val))
            return new DoubleWritable(0);
        return ratio * (val - min) + newMin;
    }
@ Override public Object map ( Object input ) { Number n = ( Number ) input ; double val = n . doubleValue ( ) ; if ( Double . isNaN ( val ) ) return new DoubleWritable ( 0 ) ; return ratio * ( val - min ) + newMin ; }
Transform an object
in to another object

@param input the record to transform
@return the transformed writable