Re: True RMS and averaging.



Jerry Avins <jya@xxxxxxxx> wrote:
(snip)

You need to get the decrement just right with an exponential averager,
and even then it's only approximate. By squaring each reading, adding it
to the sum of squares, stuffing it into the circular buffer, and
subtracting what comes out the end from the sum of squares, there is an
exact result at all times. The cost is one squaring, one add, one
subtract, one store, one read, and two pointer updates for each phase.
That is probably acceptable. (Don't try this with floating point.
Fixed-point arithmetic makes the boxcar from winding up.)

But how do you know how long to make it?

Well, I suppose with the decaying average you also need a constant.

If you know the period, then yes you can do that and average over
one period. If you don't know the period, as most True RMS DVM's
don't, then what do you do?

-- glen
.



Relevant Pages

  • Re: True RMS and averaging.
    ... By squaring each reading, adding it to the sum of squares, stuffing it into the circular buffer, and subtracting what comes out the end from the sum of squares, there is an exact result at all times. ... Modern digital power relays usually measure many, including phase voltages, power, negative-sequence currents, power factor, and more. ...
    (comp.dsp)
  • Re: a rigid transformation problem
    ... Do you mean sum of the squares? ... Using a numeric solver. ... I still have doubts about the usefullness of the Optimization package. ...
    (sci.math)
  • Re: "...the sum of squares removed by fitting..."
    ... the author uses the phrase "the sum of squares removed by fitting", ... Standard regression theory shows that the sum of squares removed ... Another phrase for the "error sum of squares" is the ...
    (sci.stat.math)
  • Re: Another Error in Afonsos Confidence Interval Code
    ... soma2 is the raw sum of squares of those numbers ... of squares to the usual corrected sum of squares. ... I have tried repeatedly to get Afonso to address, ... claiming about simulating confidence intervals. ...
    (sci.stat.math)
  • Re: Another Error in Afonsos Confidence Interval Code
    ... soma2 is the raw sum of squares of those numbers ... of squares to the usual corrected sum of squares. ... I have tried repeatedly to get Afonso to address, ... IF bb> b THEN maior = bb ...
    (sci.stat.math)