Page 1 of 1

Normalizer and Expression Filter

Posted: 29 Aug 2014, 06:22
by gcisotto
Dear all,

I am implementing a standard Motor Imagery paradigm for cursor control in 2D, where the cursor moves at constant speed on x axis and amplitude in y direction is controlled by the spectral power changes at C3 (one only feature, one only output channel from LinearClassifier).

Now, I have two questions:
1) I would like to set Expression Filter to give me the dB of the spectral power, but if I set it to 1x1 matrix with value "-10*log10(Signal(1,1))" the Operator returns me the error: "ExpressionFilter::Preflight: State "log10" is inaccessible".
2) I really can not get how to configure Normalizer! In the case I would like NOT to have adaptation I should set Adaptation to 0 for each of the ExpressionFilter's output channel (only one, in this case, right?) and offsets and gains could have any value because they will not be taken into account. Am I right? But, if I would like to HAVE adaptation (in mean and variance both) WHICH and HOW MANY parameters should I set at the beginning of the experiment? Is the number of parameters equal to the number of control signals, e.g. only one in this case (the one that controls the y-direction movement)??

Thank you in advance,
Giulia

Re: Normalizer and Expression Filter

Posted: 02 Sep 2014, 13:03
by boulay
gcisotto wrote: 1) I would like to set Expression Filter to give me the dB of the spectral power, but if I set it to 1x1 matrix with value "-10*log10(Signal(1,1))" the Operator returns me the error: "ExpressionFilter::Preflight: State "log10" is inaccessible".
I used the following line

Code: Select all

Filtering:ExpressionFilter matrix Expressions= 1 1 -10*log10(Signal(1,1)) //
That worked for me.
gcisotto wrote: 2) I really can not get how to configure Normalizer! In the case I would like NOT to have adaptation I should set Adaptation to 0 for each of the ExpressionFilter's output channel (only one, in this case, right?) and offsets and gains could have any value because they will not be taken into account. Am I right? But, if I would like to HAVE adaptation (in mean and variance both) WHICH and HOW MANY parameters should I set at the beginning of the experiment? Is the number of parameters equal to the number of control signals, e.g. only one in this case (the one that controls the y-direction movement)??
The offsets and gains will be taken into account, always, even if there is no adaptation. Adaptation allows those values to change within a run.
So if you do not want any offset or gain, then set your offset to 0 and your gain to 1.

You need one offset and one gain for each channel.
You need one adaptation parameter for each channel.