EMG : TOTAL Power

From Software Product Documentation
Jump to navigation Jump to search
Language:  English  • français • italiano • português • español 

As pointed out by Ton van den Bogert

"According to Parseval's theorem, you do not need a Fourier transform to calculate the total power. You can simply integrate the square of the signal itself."

Ton presented the matlab code for the condition that the mean is unimportant to the result as:

total_power = sum((data-mean(data)).^2);

To implement this in Visual3 for the following analog signal

ANALOG::ORIGINAL::ENG1

you can use the following command.

Metric_Sum
/RESULT_METRIC_NAME=EMG1
/APPLY_AS_SUFFIX_TO_SIGNAL_NAME=FALSE
/RESULT_METRIC_FOLDER=POWER
/SIGNAL_TYPES=ANALOG
/SIGNAL_NAMES=EMG1
/SIGNAL_FOLDER=ORIGINAL
/SIGNAL_COMPONENTS=ALL_COMPONENTS
/EVENT_SEQUENCE=
/EXCLUDE_EVENTS=
/GENERATE_MEAN_AND_STDDEV=FALSE
/APPEND_TO_EXISTING_VALUES=FALSE
;
Retrieved from ""