linreg

Crates.iolinreg
lib.rslinreg
version0.2.0
sourcesrc
created_at2018-06-09 14:49:14.138803
updated_at2019-12-08 16:40:27.102021
descriptionCalculates linear regresssions of two-dimensional data. Does not use stdlib, only depends on numeric traits.
homepage
repositoryhttps://github.com/49nord/linreg-rs.git
max_upload_size
id69347
size14,341
Marc Brinkmann (mbr)

documentation

https://docs.rs/linreg

README

linreg-rs

linreg is a small crate that calculates linear regressions. It works without stdlib or memory allocation and has few dependencies. Example:

let xs: Vec<f64> = vec![1.0, 2.0, 3.0, 4.0, 5.0];
let ys: Vec<f64> = vec![2.0, 4.0, 5.0, 4.0, 5.0];

assert_eq!(Some((0.6, 2.2)), linear_regression(&xs, &ys));

It supports tuples, separate vectors for x and y values and template floating point types.

Commit count: 40

cargo fmt