Re: [PATCH v6] Add generic exponentially weighted moving average(EWMA) function
From: Andrew Morton
Date: Wed Nov 10 2010 - 22:56:39 EST
On Thu, 11 Nov 2010 12:47:56 +0900 Bruno Randolf <br1@xxxxxxxxxxx> wrote:
> This adds generic functions for calculating Exponentially Weighted Moving
> Averages (EWMA). This implementation makes use of a structure which keeps the
> EWMA parameters and a scaled up internal representation to reduce rounding
> errors.
>
> The original idea for this implementation came from the rt2x00 driver
> (rt2x00link.c). I would like to use it in several places in the mac80211 and
> ath5k code and I hope it can be useful in many other places in the kernel code.
>
> Signed-off-by: Bruno Randolf <br1@xxxxxxxxxxx>
> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
>
> --
>
> Excuse me, but can I expect this to be merged anytime soon? Where do I check if
> it got merged? I'm resending the patch in case it got lost.
Yes, sorry, this is buried in my exponentially increasing backlog.
It's going to take me a while to catch up again.
Unless I just merge stuff without looking at it. hm, I wonder if that
would make any difference??
> +/**
> + * DOC: Exponentially Weighted Moving Average (EWMA)
> + *
> + * These are generic functions for calculating Exponentially Weighted Moving
> + * Averages (EWMA). We keep a structure with the EWMA parameters and a scaled
> + * up internal representation of the average value to prevent rounding errors.
> + * The factor for scaling up and the exponential weight (or decay rate) have to
> + * be specified thru the init fuction. The structure should not be accessed
> + * directly but only thru the helper functions.
> + */
<reads Documentation/kernel-doc-nano-HOWTO.txt>
Well, I never knew about "DOC:".
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/