Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1994
*January
*February
*March
*April
*May
*June
*July
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1994

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

Search the Archive

MovingAverage bug?

  • To: MathGroup <mathgroup at yoda.physics.unc.edu>
  • Subject: MovingAverage bug?
  • From: Tapio Luttinen <100013.2275 at compuserve.com>
  • Date: 27 Jan 94 05:44:44 EST

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?