]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2.rs
add statistics module
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 9 Jun 2020 08:01:12 +0000 (10:01 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 9 Jun 2020 10:19:51 +0000 (12:19 +0200)
commitba974798485791e25d5d97802f90544c6e33b64e
tree5aee48ebe969cba4963ad082712ac8d571256841
parent6cad8ce4ce710f247a7f1b819dc3badf845d8c74
add statistics module

provides some basic statistics functions (sum, mean, etc.)
and a function to return the parameters of the linear regression of
two variables

implemented using num_traits to be more flexible for the types

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Cargo.toml
src/api2.rs
src/tools.rs
src/tools/statistics.rs [new file with mode: 0644]