toraniko-math

Crates.iotoraniko-math
lib.rstoraniko-math
version0.2.0
created_at2025-12-22 15:22:48.083439+00
updated_at2025-12-25 15:46:35.534946+00
descriptionMathematical operations for the toraniko factor model
homepagehttps://github.com/factordynamics/toraniko-rs
repositoryhttps://github.com/factordynamics/toraniko-rs
max_upload_size
id1999869
size90,095
refcell (refcell)

documentation

README

toraniko-math

Mathematical operations for the toraniko factor model.

Functions

Cross-Sectional Operations

  • center_xsection - Cross-sectional centering and standardization
  • norm_xsection - Normalize to a range
  • percentiles_xsection - Percentile-based masking

Winsorization

  • winsorize - Clip array to symmetric percentiles
  • winsorize_xsection - Cross-sectional winsorization

Weights

  • exp_weights - Exponentially decaying weights

Linear Algebra

  • weighted_least_squares - WLS regression
  • constrained_wls - Factor model with sector constraint

Usage

use toraniko_math::{center_xsection, winsorize, exp_weights};
Commit count: 0

cargo fmt