Skip to content

Algorithms | latest | margin-factor

Margin factor

The margin factor is defined as the ratio of the peak amplitude and the square mean of square root of absolute values.

MarginFactor=max|x|(1Ni=0N1|x[i]|)2

Applications

  • Fault detection in bearings

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

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 margin_factor(signal: np.ndarray) -> float:
    return np.max(np.abs(signal)) / (np.mean(np.sqrt(np.abs(signal))) ** 2)
Run in playground