FIR Filter
Posted: 25 Nov 2008, 12:46
Hi,
I have looked the code for the last FIRFilter.cpp version.
1º) There, it appears for the integrations:
also inputLength = Input.Elements();
I agree with the mean, but looking in the wikipedia for the root mean square: http://en.wikipedia.org/wiki/Root_mean_square
it seems that the definition don´t fit with the one in the code, because the square root should include the inputLength paremeter.
I don´t know if I am wrong, maybe it´s just another way to obtain the rms value.
2º) Does inputLength = Input.Elements() correspond to the parameter SampleBlockSize ??
In that case the first Samples of the EEG in the buffer are just considered to perform the convolution...
Thanks.
I have looked the code for the last FIRFilter.cpp version.
1º) There, it appears for the integrations:
Code: Select all
case mean:
Output( channel, 0 ) = result.sum() / inputLength;
break;
case rms:
result *= result;
Output( channel, 0 ) = ::sqrt( result.sum() ) / inputLength;
break;I agree with the mean, but looking in the wikipedia for the root mean square: http://en.wikipedia.org/wiki/Root_mean_square
it seems that the definition don´t fit with the one in the code, because the square root should include the inputLength paremeter.
I don´t know if I am wrong, maybe it´s just another way to obtain the rms value.
2º) Does inputLength = Input.Elements() correspond to the parameter SampleBlockSize ??
In that case the first Samples of the EEG in the buffer are just considered to perform the convolution...
Thanks.