Newsgroups: comp.speech,comp.dsp,comp.robotics
Path: lyra.csx.cam.ac.uk!doc.ic.ac.uk!warwick!slxsys!pipex!howland.reston.ans.net!math.ohio-state.edu!news.acns.nwu.edu!news.eecs.nwu.edu!dmr
From: dmr@news.eecs.nwu.edu (Dan Mapes-Riordan)
Subject: Re: calc. of long & short term avgs.
Message-ID: <CtpE7C.9J7@eecs.nwu.edu>
Followup-To: comp.speech,comp.dsp,comp.robotics
Sender: usenet@eecs.nwu.edu
Organization: EECS Department, Northwestern University
X-Newsreader: TIN [version 1.2 PL0]
References: <315v47$qb2@jaws.cs.hmc.edu>
Distribution: usa
Date: Fri, 29 Jul 1994 13:16:16 GMT
Lines: 11
Xref: lyra.csx.cam.ac.uk comp.speech:2972 comp.dsp:8580 comp.robotics:9617

Try using 32-bits for your eqn.  This will require extra instructions to 
carry the lower 16-bits but it should solve your problem.  I have had 
success with this method with (n-1)/n being in the range of 0.99999XXXXX..
Your short-time averager should still work with 16-bits if (n-1)/n is
the range of 0.9XXXXX..

Hope this helps.

Dan Mapes-Riordan
dmr@eecs.nwu.edu

