reference_interval/
lib.rs

1//! # Reference interval Rust crate
2//!
3//! This create provides several ways to help with a reference interval:
4//!
5//! * `ReferenceInterval` - A struct for a reference interval lower value and upper value.
6//!
7//! * `mean` - Calculate the mean of a reference interval.
8//!
9//! * `standard_deviation` - Calculate the standard deviation of a reference interval.
10//! 
11//! * `normal` - Calculate the normal distribution of a reference interval.
12//! 
13//! Wikipedia has an introduction to the concept of a reference interval, which we've excerpted and edited below.
14//!
15//! * <https://en.wikipedia.org/wiki/Reference_interval>
16//!
17//! ## Reference interval
18//!
19//! A reference interval is the set of values that are deemed normal for a
20//! measurement.
21//!
22//! A reference interval is a basis for comparison and interpretation, typically
23//! comparing and interpreting one measurement result with a general group of
24//! measurement results.
25//!
26//! Some important reference intervals are in medicine and health care. Examples are
27//! a reference interval for hemoglobin blood testing, a reference interval for
28//! cortisol hormone testing, a reference interval for histamine allergy testing,
29//! and a reference interval for acidity urine testing.
30//!
31//! ## Standard reference interval
32//!
33//! A standard reference interval is defined as the interval between which 95% of
34//! values of a reference population fall into, in such a way that 2.5% of the time
35//! a value will be less than the lower limit of this interval, and 2.5% of the time
36//! it will be larger than the upper limit of this interval, whatever the
37//! distribution of these values.
38//!
39//! ## General reference interval
40//!
41//! A general reference interval is defined as a standard reference interval based
42//! on what is most prevalent in a reference group taken from the general
43//! population, and without any known aspect that directly affects the interval
44//! being established.
45//!
46//! ## Subgroup reference interval
47//!
48//! A subgroup reference interval is defined as a standard reference interval based
49//! on a subgroup with a known aspect that directly affects the interval being
50//! established.
51//!
52//! ## Within Reference Interval (WRI)
53//!
54//! A value inside a reference interval is termed within reference interval (WRI).
55//!
56//! A value inside a reference interval is not necessarily good, and not necessarily
57//! normal in any sense other than statistically.
58//!
59//! ## Beyond reference interval (BRI)
60//!
61//! A value outside a reference interval is termed beyond reference interval (BRI).
62//!
63//! A value outside a reference interval is not necessarily bad, and not necessarily
64//! abnormal in any sense other than statistically.
65//!
66//! ## Lower Reference Limit (LRL) & Upper Reference Limit (URL)
67//!
68//! The limits are called:
69//!
70//! * The lower reference limit (LRL) a.k.a. lower limit of normal (LLN)
71//!
72//! * The upper reference limit (URL) a.k.a. upper limit of normal (ULN)
73//!
74//! For mass communications such as publishing, style sheets sometimes prefer the
75//! word "reference" over the word "normal", to prevent the nontechnical senses of
76//! normal from being conflated with the statistical sense.
77//!
78//! ## Binary classification
79//!
80//! For binary classification, a cutoff or threshold is a limit used mainly between
81//! within reference interval (WRI) and beyond reference interval (BRI).
82//!
83//! ## Reference interval vs. reference range
84//!
85//! A reference interval is a.k.a. reference range. Because mathematical statistics
86//! defines the term "range" as describing the interval between the smallest and
87//! largest values, many, including the International Federation of Clinical
88//! Chemistry prefer to use the expression reference interval rather than reference
89//! range.
90//!
91pub mod reference_interval;
92pub mod mean;
93pub mod standard_deviation;
94pub mod normal;
95
96#[allow(unused_imports)] pub use reference_interval::ReferenceInterval;
97#[allow(unused_imports)] pub use mean::mean;
98#[allow(unused_imports)] pub use standard_deviation::standard_deviation;
99#[allow(unused_imports)] pub use normal::normal;