MathGroup Archive 1994

[Date Index] [Thread Index] [Author Index]

Search the Archive

MovingAverage bug?


Dear MathGroup

Is there a bug in MovingAverage package?

<<Statistics`MovingAverage`
data = {{a,b}, {c,d}, {e,f}};
MovingAverage[data, 1]

     b + d       d + f
{{a, -----}, {c, -----}}
       2           2

I would expect

  a + c  b + d    c + e  d + f
{{-----, -----}, {-----, -----}}
    2      2        2      2

Tapio Luttinen

+-----------------------------------------------------------------------+
| Tapio Luttinen                     Tel. (work)     +358 (18) 752-4252 |
| TL Consulting Engineers Ltd.       Tel. (home)     +358 (18) 756-3332 |
| Kulmakatu 5                        Tel. (mobile)   +358 (49) 350-298  |
| 15140 Lahti                        Fax             +358 (18) 752-4253 |
| FINLAND                            E-mail 100013.2275 at compuserve.com  |
+-----------------------------------------------------------------------+






  • Prev by Date: [no subject]
  • Next by Date: MRI notebooks?
  • Previous by thread: [no subject]
  • Next by thread: MRI notebooks?