Displaying 2 results from an estimated 2 matches for "enoise".
Did you mean:
noise
2004 Aug 06
2
testenc and snr calculation
Hi all,
I'm new to the group. I'm looking at the speex code with an eye towards
maybe helping out with either codec optimization or fixed-point
implementation, The SNR calculation in testenc.c and testenc_uwb.c
doesn't make sense to me. The code is
{
float enoise=0, esig=0, snr;
for (i=0;i<FRAME_SIZE;i++)
{
enoise+=(bak2[i]-input[i])*(bak2[i]-input[i]);
esig += bak2[i]*bak2[i];
}
snr = 10*log10((esig+1)/(enoise+1));
printf ("real SNR = %f\n", snr);
}
But what I see from...
2004 Aug 06
0
testenc and snr calculation
...o the group. I'm looking at the speex code with an eye towards
> maybe helping out with either codec optimization or fixed-point
> implementation, The SNR calculation in testenc.c and testenc_uwb.c
> doesn't make sense to me. The code is
>
> {
> float enoise=0, esig=0, snr;
> for (i=0;i<FRAME_SIZE;i++)
> {
> enoise+=(bak2[i]-input[i])*(bak2[i]-input[i]);
> esig += bak2[i]*bak2[i];
> }
> snr = 10*log10((esig+1)/(enoise+1));
> printf ("real SNR = %f\n",...