pub fn numpress_compress(data: &[f64], scaling: f64) -> Result<Vec<u8>>
Expand description

High-level compressor for Numpress.

The recommended scaling factor is DEFAULT_SCALING, and the optimal scaling factor can be calculated via optimal_scaling.

  • data - Slice of doubles to be encoded.
  • scaling - Scaling factor used for getting the fixed point representation.