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 SignificanceLevel;
let from_fraction = fractional.unwrap;
let from_percentage = percentage.unwrap;
assert_eq!;
Confidence Levels
The confidence level describes the probability of obtaining the same result in repeated data collection processes.
use ConfidenceLevel;
let from_fraction = fractional.unwrap;
let from_percentage = percentage.unwrap;
assert_eq!;
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 ;
let from_fraction = fractional.unwrap;
let interval = new;
assert!;