0
$\begingroup$

I'm looking for python functions (package) to calculate SMA (signal magnitude area), SVM (signal vector magnitude) and PSD (Power Spectral Density). The goal is to extract features from an accelerometer data. Thanks

$\endgroup$
0
$\begingroup$

You can use matplotlib.pyplot.psd to get PSD (Power Spectral Density): it returns the values for the power spectrum and the corresponding frequencies.

As for SMA (Signal Magnitude Area) and SVM (Signal Vector Magnitude), I am not aware of their support in existing packages. They seem to be easily implementable in one-line functions though.

$\endgroup$
2
  • $\begingroup$ Thanks for your answer. I will try it. although I am interested in returning values as csv files to be used for classification. $\endgroup$ – Ziad Dec 29 '20 at 13:23
  • $\begingroup$ @Ziad Using csv files can be done with separate libs. Maybe you will find this helpful. $\endgroup$ – megasplash Dec 29 '20 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.