Lines Matching full:mean
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.
64 * mean_and_variance_get_mean() - get mean from @s
65 * @s: mean and variance number of samples and their sums
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
120 s64 diff_w = x_w - s->mean; in mean_and_variance_weighted_update()
122 // new mean weighted. in mean_and_variance_weighted_update()
123 s64 u_w1 = s->mean + diff; in mean_and_variance_weighted_update()
126 s->mean = x_w; in mean_and_variance_weighted_update()
129 s->mean = u_w1; in mean_and_variance_weighted_update()
136 * mean_and_variance_weighted_get_mean() - get mean from @s
137 * @s: mean and variance number of samples and their sums
143 return fast_divpow2(s.mean, weight); in mean_and_variance_weighted_get_mean()
149 * @s: mean and variance number of samples and their sums
162 * @s: mean and variance number of samples and their sums