Algorithms | latest | shape-factor
Shape factor
The shape factor is defined as the ratio of the RMS value and the mean of absolute values.
References
- Caesarendra, W., & Tjahjowidodo, T. (2017). A Review of Feature Extraction Methods in Vibration-Based Condition Monitoring and Its Application for Degradation Trend Estimation of Low-Speed Slew Bearing. Machines, 5(4), 21. https://doi.org/10.3390/machines5040021
- https://de.mathworks.com/help/predmaint/ug/signal-features.html
Code
INFO
The following snippet is written in a generic and unoptimized manner. The code aims to be comprehensible to programmers familiar with various programming languages and may not represent the most efficient or idiomatic Python practices. Please refer to implementations for optimized implementations in different programming languages.
py
import numpy as np
def shape_factor(signal: np.ndarray) -> float:
return np.sqrt(np.mean(signal**2)) / np.mean(np.abs(signal))