Z Table
This crate provides lookup functions for the standard normal table, also called Z table. Because the lookup functions are const fn
, they can be evaluated at compile time. This crate is:
- Small in size
- Fast, as it relies on simple table lookups and can be evaluated at compile time
- Minimalistic, only some basic table lookup functions are provided
Keep in mind that this crate isn't the most precise as it only relies on table lookups. The error is roughly 0.1%.
If you need something more precise with more functionaliy, don't use this crate. An alternative would be statrs.
Example
use ;
The output is:
The probability of a newborn to weight less than 3.5 kg is 85.54277 %
The weight of a newborn is with a 90 % probability under 3.588379 kg