mean and variance: More tests
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 26 May 2023 02:22:25 +0000 (22:22 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:02 +0000 (17:10 -0400)
commit65bc41090720cdc249c1b0b9b9b8a8f062b41268
treebbbe6c8d8cd02026e3896e938dae686f74dea812
parentaab5e0972a32790c0dbfac64929529820114c674
mean and variance: More tests

Add some more tests that test conventional and weighted mean
simultaneously, and with a table of values that represents events that
we'll be using this to look for so we can verify-by-eyeball that the
output looks sane.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/mean_and_variance.h
fs/bcachefs/mean_and_variance_test.c
fs/bcachefs/util.c