numpress

Build Status Latest Version

A pure rust implementation of ms-numpress, a fast, minimally lossy compression algorithm for mass spectrometry data.

Getting Started

```rust // Compress floats to bytes let floats: Vec = vec![100., 101., 102., 103.]; let compressed: Vec = numpresscompress(&decoded, DEFAULTSCALING)?;

// Decompress floats from bytes. let decompressed: Vec = numpress_decompress(&compressed)?; ```

Documentation

Numpress's documentation can be found on docs.rs.

Dependency

Numpress is available on crates.io. Use the following in Cargo.toml:

yaml [dependencies] numpress = "1.0"

License

Like the original ms-numpress implementation, this code is open source. It is dual licenced under the Apache 2.0 license as well as the 3-clause BSD licence. See the LICENCE-BSD and the LICENCE-APACHE file for the licences.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in numpress by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.