Download BrainVision Analyzer Automation Reference Manual

Transcript
94 Chapter 3 Callable transforms
Table 3-3. Parameters for Formula Evaluator
Variable
Description
Unit
This variable describes the unit for a newly calculated channel. If the unit is not specified, microvolts are taken by default.
The possible values are (µ can be replaced by u, ² can be
replaced by 2, and no distinction is made between uppercase
and lowercase):
None (without a unit)
µV or uV
μV/Hz or uV/Hz
μV² or uV2
μV²/Hz or uV2/Hz
μV/m² or uV/m2
Example:
Unit(1) = uV2
KeepOldChannels
This variable accepts the values False and True. It defines
whether the data of the parent node is to be included in the
new data set. Example:
KeepOldChannels = True
Examples:
Transformation.Do "Formula", _
"Formula(1) = RelationFp1Fp2 = Fp1 / Fp2; Unit(1) = none", _
ActiveNode
The new data set contains a new channel named RelationFp1Fp2. The data does not have a
unit. The data of the parent node is not kept.
Transformation.Do "Formula", "Formula(1) = Fp1' = " & _
"(shift(Fp1, -1) + Fp1 + shift(Fp1, 1)) / 3;" & _
"Formula(2) = Fp2' = (shift(Fp2, -1) + Fp2 + " & _
"shift(Fp2, 1)) / 3; KeepOldChannels = True", _
ActiveNode, "Test"
Two new channels, Fp1' and Fp2', are created. The unit for these channels is μV, as the unit
was not explicitly defined. The data of the parent node is kept.