confi

Crates.ioconfi
lib.rsconfi
version
sourcesrc
created_at2024-11-06 18:13:57.86344
updated_at2024-12-11 13:47:10.13378
descriptionconfidence intervals and significance levels for statistical computation
homepage
repositoryhttps://github.com/cgubbin/confi
max_upload_size
id1438658
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Christopher Gubbin (cgubbin)

documentation

README

confidence


A simple crate for dealing with confidence levels, significance levels and confidence intervals.

Significance Levels


The significance level describes the evidence present in a sample under test which allows for rejection of the null hypothesis (the state when two outcomes or possibilities are the same). In a measurement model the null hypothesis under test is typically whether a given reading is indistinguishable from another, or whether it is indistinguishable from the system response at zero stimulus (the minimum detectable value).

use confi::SignificanceLevel;

let from_fraction = SignificanceLevel::fractional(0.1).unwrap();
let from_percentage = SignificanceLevel::percentage(10.0).unwrap();

assert_eq!(from_fraction, from_percentage);

Confidence Levels


The confidence level describes the probability of obtaining the same result in repeated data collection processes.

use confi::ConfidenceLevel;

let from_fraction = ConfidenceLevel::fractional(0.1).unwrap();
let from_percentage = ConfidenceLevel::percentage(10.0).unwrap();

assert_eq!(from_fraction, from_percentage);

Confidence intervals


A confidence interval is a range of results which can be deemed to contain a measured value to a given confidence level.

use confi::{ConfidenceLevel, ConfidenceInterval, Confidence};

let from_fraction = ConfidenceLevel::fractional(0.1).unwrap();
let interval = ConfidenceInterval::new(1.0..=3.0, from_fraction);

assert!(interval.contains(2.0));

Commit count: 8

cargo fmt