Class: MeanCrossingRate

MeanCrossingRate

Mean Crossing Rate operator : estimates the frequency and periodicity of a (n-dimension) signal, either on an input stream of signal frames, or by using its own sliding window on an input stream of vectors.

The mean is estimated on each new analyzed window using the following equation : mean = min + (max - min) * 0.5;

output: an array of size 2 * inputDimension ([ frequency1, periodicity1, ... frequencyN, periodicityN ])

Constructor

new MeanCrossingRate(optionsopt)

Parameters:
Name Type Attributes Description
options Object <optional>

Override default options.

Properties
Name Type Attributes Default Description
noiseThreshold Number <optional>
0.1

Threshold added to the mean to avoid confusion between noise and real signal.

frameSize Number <optional>
512

Size of the internal sliding window. Will be ignored if input is signal.

hopSize Number <optional>
null

Number of samples between two computations on the internal sliding window. Will be ignored is input is signal.

Deprecated:
  • Yes
Source: