API reference
API reference
Select your platform
No SDKs available
No versions available

IOneEuroFilter Interface

Core interface for One Euro filter implementations.
An academic relative of the $-family of gesture recognizers, the One Euro filter is designed to make effective and efficient noise reduction in signal processing accessible to non-domain experts. Thus, this filter focuses on balancing result quality (bettering more naive approaches) with developer ease-of-use (contrasted with more sophisticated techniques such as Kalman filters).
Others
TData
The type of data to be filtered, such as a float or a Vector3
The Interaction SDK's canonical implementation of this interface is OneEuroFilter.

Properties

The last value returned by Step(TData, float), which is the up-to-date known filtered value of the signal being processed by this filter.

Member Functions

Update the parameters of the filter
Parameters
propertyBlock
The property block containing the parameters to se
Update the filter with a new noisy value to be smoothed.
This is a destructive operation that should be run once per frame, as calling this updates the previous frame data.
Parameters
rawValue
The noisy value to be filtered
deltaTime
The time between steps, use to derive filter frequency. Omitting this value will fallback to OneEuroFilter._DEFAULT_FREQUENCY_HZ
Returns
The filtered value, equivalent to Value
Clear previous values and reset the filter
Did you find this page helpful?
Thumbs up icon
Thumbs down icon