Crate cert

Source
Expand description

Cert provides abstractions for representing numerical quantities with associated uncertainties.

It provides two concrete types for representing uncertainties, both characterized by two quantities: a value and an uncertainty. For both the value represents the mean of the quantity. For the AbsUncertainty type the uncertainty is the standard deviation, while for the RelUncertainty type the uncertainty is the coefficient of variation, or the ratio of the standard deviation and the mean.

§Examples

use cert::{AbsUncertainty, RelUncertainty, Uncertainty};

let absolute_uncertainty = AbsUncertainty::new(10.0, 1.0);
let relative_uncertainty = RelUncertainty::from(absolute_uncertainty);

Structs§

AbsUncertainty
An absolute uncertainty.
RelUncertainty
A relative uncertainty.

Traits§

Uncertainty
Used to define behaviour for values which have associated uncertainty.