ptwm_core::transforms::alpha_stable_normalize
ptwm_core::transforms::alpha_stable_normalize
AlphaStableNormalize — per-row robust affine normalization (v − δ)/γ with an exact XOR residual. δ = median(row), γ = median(|row − δ|) (MAD). Lossless by construction: the fit is encode-only, γ, δ are stored per row, and the residual repairs all round-off — so reconstruction is bit-exact regardless of the (heavy-tailed) distribution.
ptwm_core::transforms::alpha_stable_normalize
crates/ptwm-core/src/transforms/alpha_stable_normalize.rs:1mod alpha_stable_normalize`AlphaStableNormalize` — per-row robust affine normalization `(v − δ)/γ` with an exact XOR residual. δ = median(row), γ = median(|row − δ|) (MAD). Lossless by construction: the fit is encode-only, `γ, δ` are stored per row, and the residual repairs all round-off — so reconstruction is bit-exact regardless of the (heavy-tailed) distribution.
ptwm_core::transforms::alpha_stable_normalize::AlphaStableNormalize
crates/ptwm-core/src/transforms/alpha_stable_normalize.rs:171pub struct AlphaStableNormalizePer-row robust affine normalization with exact XOR residual.
ptwm_core::transforms::alpha_stable_normalize::read_alpha_stable_normalize_params
crates/ptwm-core/src/transforms/alpha_stable_normalize.rs:220pub fn read_alpha_stable_normalize_params(params: &[u8]) -> Result<(AlphaStableNormalize, usize), PtwmCoreError>Parse the 2 param bytes `[precision, dtype]`.