summaryrefslogtreecommitdiff
path: root/fs/bcachefs/mean_and_variance.c
AgeCommit message (Collapse)AuthorFilesLines
2023-10-23bcachefs: Mean and varianceDaniel Hill1-0/+159
This module provides a fast 64bit implementation of basic statistics functions, including mean, variance and standard deviation in both weighted and unweighted variants, the unweighted variant has a 32bit limitation per sample to prevent overflow when squaring. Signed-off-by: Daniel Hill <daniel@gluo.nz> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>