PTWM
transforms

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

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.

rsmod

ptwm_core::transforms::alpha_stable_normalize

crates/ptwm-core/src/transforms/alpha_stable_normalize.rs:1
mod 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.

rstype

ptwm_core::transforms::alpha_stable_normalize::AlphaStableNormalize

crates/ptwm-core/src/transforms/alpha_stable_normalize.rs:171
pub struct AlphaStableNormalize

Per-row robust affine normalization with exact XOR residual.

rsfn

ptwm_core::transforms::alpha_stable_normalize::read_alpha_stable_normalize_params

crates/ptwm-core/src/transforms/alpha_stable_normalize.rs:220
pub fn read_alpha_stable_normalize_params(params: &[u8]) -> Result<(AlphaStableNormalize, usize), PtwmCoreError>

Parse the 2 param bytes `[precision, dtype]`.