use-biodiversity 0.1.0

Primitive biodiversity vocabulary for RustUse
Documentation
  • Coverage
  • 12%
    3 out of 25 items documented1 out of 12 items with examples
  • Size
  • Source code size: 9.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 709.22 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-ecology
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-biodiversity

Primitive biodiversity vocabulary.

use-biodiversity models non-negative species richness values, descriptive diversity index kinds, and biodiversity measures that wrap species richness or named index values. It does not implement biodiversity analysis frameworks, fetch occurrence data, calculate indices from datasets, or perform conservation scoring.

Example

use use_biodiversity::{BiodiversityMeasure, DiversityIndex, DiversityIndexKind, SpeciesRichness};

let richness = SpeciesRichness::new(128).unwrap();
let shannon = DiversityIndex::new(DiversityIndexKind::Shannon, 2.3).unwrap();

assert_eq!(BiodiversityMeasure::SpeciesRichness(richness).to_string(), "species-richness: 128");
assert_eq!(BiodiversityMeasure::DiversityIndex(shannon).to_string(), "shannon: 2.3");

Scope

  • non-negative species richness values
  • descriptive diversity index kinds
  • biodiversity measures that carry named values

Non-goals

  • biodiversity analysis frameworks
  • occurrence data fetching
  • index calculation from datasets
  • conservation scoring

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0