pd_cipher::encryptors::numerical
Numerical token encryption using Piecewise Linear Transformation. Numerical token encryption using Piecewise Linear Transformation (PLT).
This module implements order-preserving and scale-preserving transformations for numerical tokens, enabling ML models to work with encrypted numeric data.
Structs
PiecewiseLinearTransformer
Piecewise Linear Transformer for numerical obfuscation.
Provides a stateless, key-derived monotonic function that preserves strict order and approximate relative scale for numerical data.
Properties
- Order Preservation: If x < y, then transform(x) < transform(y)
- Scale Preservation: Slopes centered around 1.0 maintain relative differences
- Deterministic: Same key and parameters always produce same transformation
- Secure: Key-derived parameters prevent inverse computation
- Special Values: Handles Infinity, -Infinity, and NaN deterministically
pub struct PiecewiseLinearTransformer