Talk:Averages/Simple moving average: Difference between revisions

Autohotkey takes average of all previous instead of last N.
(→‎Numerical soundness: Not A Code Snippet Repository)
(Autohotkey takes average of all previous instead of last N.)
Line 7:
:: I suppose in a "moving average" you can't sort operands, unless you store them, and doing so has not so good implications. I suppose also that investigating the limits of IEEE floating point is not the focus of the task. Users run code on RC at their own risk! --[[User:ShinTakezou|ShinTakezou]] 15:27, 21 June 2009 (UTC)
::: Rosetta Code is not a code snippet repository; Code snippets shouldn't be placed here under the expectation that someone will use them ''verbatim''. Pointing out the implications of floating-point error (or any other error caused by underlying tools) as it relates to the task or problem area is well within the ''educational'' nature of the site, and is a reasonable thing to do when notice to avoid harming people who use the code without sufficiently understanding what it does. --[[User:Short Circuit|Short Circuit]] 19:36, 21 June 2009 (UTC)
 
==Autohotkey takes average of all previous==
-Ut should be a sum of the last N items, not all previous items. --[[User:Paddy3118|Paddy3118]] 04:02, 22 June 2009 (UTC)
Anonymous user