[linux-audio-dev] power computation

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

Subject: [linux-audio-dev] power computation
From: Paul Barton-Davis (pbd_AT_Op.Net)
Date: pe maalis 03 2000 - 00:04:11 EST


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.


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