BrushFamily.InputModel.SlidingWindowModel



An InputModel that averages nearby inputs together within a sliding time window.

Summary

Public constructors

Constructs a SlidingWindowModel with default parameters.

Cmn
SlidingWindowModel(
    windowDurationMillis: Long,
    upsamplingFrequencyHz: Int
)

Constructs a SlidingWindowModel with the given parameters.

Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Int

The minimum frequency at which modeled inputs should occur, or zero to disable upsampling.

Cmn
Long

The duration over which to average together nearby raw inputs.

Cmn

Public constructors

SlidingWindowModel

SlidingWindowModel()

Constructs a SlidingWindowModel with default parameters.

SlidingWindowModel

SlidingWindowModel(
    windowDurationMillis: Long,
    upsamplingFrequencyHz: Int
)

Constructs a SlidingWindowModel with the given parameters.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

upsamplingFrequencyHz

val upsamplingFrequencyHzInt

The minimum frequency at which modeled inputs should occur, or zero to disable upsampling.

windowDurationMillis

val windowDurationMillisLong

The duration over which to average together nearby raw inputs. Typically this should be somewhere in the 1 ms to 100 ms range.