sim_lib_numbers_stats/lib.rs
1#![forbid(unsafe_code)]
2#![deny(missing_docs)]
3
4//! Probability, descriptive statistics, deterministic clustering, streaming
5//! quantiles, finite Markov and hidden-state sequence inference, and fairness
6//! helpers for number-domain data.
7//!
8//! Descriptive statistics and disparate-impact helpers also expose Claim
9//! surfaces. The Claim values carry their subject, predicate, and evidence table
10//! as inspectable runtime data, so callers can browse both the computed metric
11//! and the inputs used to justify it. [`fit_markov`] keeps the finite vocabulary,
12//! exact counts, additive smoothing, held-out likelihood, deterministic
13//! serialization, and corpus provenance inspectable instead of hiding learned
14//! weights. [`QuantileSketch`] makes rank error and retained memory explicit;
15//! [`forward_backward`], [`viterbi`], and [`fit_hmm`] keep normalization,
16//! convergence, bounded work, numerical repair, and termination evidence.
17//! [`fit_kmeans`] and [`fit_gmm`] add seeded initialization, bounded convergence,
18//! regularized covariance, singular-component policy, and model-selection
19//! evidence without taking ownership of sequence alignment.
20
21mod implementation;
22
23pub use implementation::*;
24
25/// Cookbook recipes for this lib, embedded at build time.
26pub static RECIPES: sim_cookbook::EmbeddedDir =
27 include!(concat!(env!("OUT_DIR"), "/cookbook_recipes.rs"));
28
29#[cfg(test)]
30mod tests;