OneEuroFilter is a simple low-pass filter for noisy signals. It uses a one-euro filter to smooth the signal.

Constructors

  • Create a new OneEuroFilter

    Parameters

    • freq: number

      An estimate of the frequency in Hz of the signal (> 0), if timestamps are not available.

    • minCutOff: number = 1.0

      Min cutoff frequency in Hz (> 0). Lower values allow to remove more jitter.

    • beta: number = 0.0

      Parameter to reduce latency (> 0). Higher values make the filter react faster to changes.

    • dCutOff: number = 1.0

      Used to filter the derivates. 1 Hz by default. Change this parameter if you know what you are doing.

    Returns OneEuroFilter

Properties

beta: number

Parameter to reduce latency (> 0). Higher values make the filter react faster to changes.

dCutOff: number

Used to filter the derivates. 1 Hz by default. Change this parameter if you know what you are doing.

dx: LowPassFilter

The low-pass filter for the derivates.

freq: number

An estimate of the frequency in Hz of the signal (> 0), if timestamps are not available.

lasttime: number

The last time the filter was called.

minCutOff: number

Min cutoff frequency in Hz (> 0). Lower values allow to remove more jitter.

x: LowPassFilter

The low-pass filter for the signal.

Methods

  • Parameters

    • cutOff: number

    Returns number

  • Filter your value: call with your value and the current timestamp (e.g. from this.context.time.time)

    Parameters

    • x: number
    • time: number = null

    Returns number

  • Parameters

    • Optional x: number

    Returns void

Generated using TypeDoc