Lines Matching full:variance
3 * Functions for incremental mean and variance.
20 * This is includes some incremental algorithms for mean and variance calculation
28 …* Use the mean_and_variance[_weighted]_get_* functions to calculate the mean and variance, some co…
33 * DO NOT access the mean and variance fields of the weighted variants directly.
65 * @s: mean and variance number of samples and their sums
74 * mean_and_variance_get_variance() - get variance from @s1
75 * @s1: mean and variance number of samples and sums
94 * @s: mean and variance number of samples and their sums
104 * @s: mean and variance number of samples and their sums
115 // previous weighted variance. in mean_and_variance_weighted_update()
117 u64 var_w0 = s->variance; in mean_and_variance_weighted_update()
127 s->variance = 0; in mean_and_variance_weighted_update()
130 s->variance = ((var_w0 << w) - var_w0 + ((diff_w * (x_w - u_w1)) >> w)) >> w; in mean_and_variance_weighted_update()
137 * @s: mean and variance number of samples and their sums
148 * mean_and_variance_weighted_get_variance() -- get variance from @s
149 * @s: mean and variance number of samples and their sums
156 return s.variance >> weight; in mean_and_variance_weighted_get_variance()
162 * @s: mean and variance number of samples and their sums