Skip to content

Algorithms | latest | crest-factor

Crest factor

The crest factor is defined as the ratio of the peak amplitude to the RMS of a signal. It can be intepreted as a measure for the impulsiveness of a signal.

CrestFactor=max|x|1Ni=0N1x[i]2

Applications

  • Fault detection in bearings and gear boxes

References

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