public static JavaRDD<List<Writable>> normalize(Schema schema, JavaRDD<List<Writable>> data, double min,
                    double max) {
        DataRowsFacade frame = DataFrames.toDataFrame(schema, data);
        return DataFrames.toRecords(normalize(frame, min, max, Collections.<String>emptyList())).getSecond();
    }
public static JavaRDD < List < Writable > > normalize ( Schema schema , JavaRDD < List < Writable > > data , double min , double max ) { DataRowsFacade frame = DataFrames . toDataFrame ( schema , data ) ; return DataFrames . toRecords ( normalize ( frame , min , max , Collections . < String > emptyList ( ) ) ) . getSecond ( ) ; }
Scale based on min,max

@param schema the schema of the data to scale
@param data   the data to sclae
@param min    the minimum value
@param max    the maximum value
@return the normalized ata