Re: [linux-audio-dev] power computation

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] power computation
From: Alexander Ehlert (ehlert_AT_phys.unsw.edu.au)
Date: pe maalis 03 2000 - 01:54:35 EST


Hi Paul,

> am i right in thinking that:
>
> rms_power = sum (fabs(each_sample))/n_samples
>
> is equivalent to:
>
> rms_power = sqrt (sum (each_sample * each_sample)) / n_samples
>
> it seemed to me that the first is computationally equivalent, but more
> efficient; it seems to yield different results, however.

You're wrong: sqrt(a*a+b*b) != a+b
But it's tempting ;)

Cheers, Alex


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : pe maalis 10 2000 - 07:23:28 EST