use-factor 0.0.1

Primitive quantitative factor vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    19 out of 19 items documented1 out of 16 items with examples
  • Size
  • Source code size: 9.35 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 635.71 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-quant
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-factor

Primitive quantitative factor vocabulary for RustUse.

use-factor stores non-empty factor names, model names, exposures, and loadings as descriptive primitives.

Example

use use_factor::{FactorExposure, FactorLoading, FactorName};

let factor = FactorName::new("momentum")?;
let exposure = FactorExposure::new(factor.clone(), 0.7)?;
let loading = FactorLoading::new(factor, 1.2)?;

assert_eq!(exposure.factor().as_str(), "momentum");
assert_eq!(loading.value(), 1.2);
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for descriptive factor vocabulary. It does not estimate regressions, fetch factor data, implement a modeling framework, or provide recommendations.

License

Licensed under either MIT or Apache-2.0.