quantre 0.1.0

Quant wheels reinvented in Rust.
Documentation
  • Coverage
  • 100%
    12 out of 12 items documented1 out of 4 items with examples
  • Size
  • Source code size: 11.95 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 326.58 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • ghasimi/quantre
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ghasimi

quantre

crates.io | docs.rs | github | home

Quant wheels reinvented in Rust.

Installation

cargo add quantre

Examples

// main.rs
use quantre::random;
use quantre::normal;

fn main() {
    // A random number from [0, 1)
    println!("{}", random::rand1());

    // Five random integers from -2 to 7
    println!("{:?}", random::randi(5, -2, 7));

    // Three random numbers from N(0, 1)
    println!("{:?}", random::randn(3, 0., 1.));

    // P(X <= 1.96), X ∈ N(0, 1)
    println!("{}", normal::cdf(1.96, 0., 1.));
}