/** Get the default DataPacker */ public DataPacker getDataPacker(DataStats stats) { double min = stats.getMin(); double max = stats.getMax(); double offset = (min + max) / 2; double scale = (max - min) / getDenominator(); return new DataPacker(offset, scale, getReservedValue()); }
/** Get the default DataPacker */ public DataPacker getDataPacker(DataStats stats) { double min = stats.getMin(); double max = stats.getMax(); double offset = (min + max) / 2; double scale = (max - min) / getDenominator(); return new DataPacker(offset, scale, getReservedValue()); }