GregLocock
Automotive
- Apr 10, 2001
- 23,422
I've just been idly implementing moving averages in Octave, and came across Spencer's moving averages
spencer15=[-3, -6, -5, 3, 21, 46, 67, 74, 67, 46, 21, 3, -5, -6, -3];
spencer21=[-1 -3 -5 -5 -2 6 18 33 47 57 60 57 47 33 18 6 -2 -5 -5 -3 -1];
[ms,z]= filter(spencer21,sum(spencer21),cet);
Just recently we had a question from someone who wanted to use some fancy pants method for determining optima, which seemed quite similar.
Wolfram has this to say
But I have not been able to find a hand wavy description of what exactly spencer was hoping to achieve. FWIW on real data spencer15 seems about equivalent to a simple moving average with period 7.
Does anybody have a handwavy description?
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376
spencer15=[-3, -6, -5, 3, 21, 46, 67, 74, 67, 46, 21, 3, -5, -6, -3];
spencer21=[-1 -3 -5 -5 -2 6 18 33 47 57 60 57 47 33 18 6 -2 -5 -5 -3 -1];
[ms,z]= filter(spencer21,sum(spencer21),cet);
Just recently we had a question from someone who wanted to use some fancy pants method for determining optima, which seemed quite similar.
Wolfram has this to say
But I have not been able to find a hand wavy description of what exactly spencer was hoping to achieve. FWIW on real data spencer15 seems about equivalent to a simple moving average with period 7.
Does anybody have a handwavy description?
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376