#fraction #normalized

unifrac

A crate for working with normalized fractional values

3 releases

0.1.2 Jan 2, 2025
0.1.1 Jan 2, 2025
0.1.0 Jan 2, 2025

#460 in Math

Download history 282/week @ 2024-12-28 68/week @ 2025-01-04

350 downloads per month

MIT license

16KB
238 lines

Maintenance Crates.io version Docs.rs Size License

unifrac

A crate for working with normalized fractional values.

It provides several fractional types for Rust:

  • Primant — a type representing a fraction between 0 and 1 (inclusive).
  • Phase — a type representing a fraction between 0 and 1 (exclusive).

It does not depend on the standard library, so it can be used in no_std contexts.

For more information, see the crate documentation.

Dependencies

~150KB