lsl_smoothing_halftime function

  1. @Native<NativeLsl_smoothing_halftime>()
int lsl_smoothing_halftime(
  1. lsl_inlet in$,
  2. double value
)

Override the half-time (forget factor) of the time-stamp smoothing.

The default is 90 seconds unless a different value is set in the config file.

Using a longer window will yield lower jitter in the time stamps, but longer windows will have trouble tracking changes in the clock rate (usually due to temperature changes); the default is able to track changes up to 10 degrees C per minute sufficiently well. @param in The lsl_inlet object to act on. @param value The new value, in seconds. This is the time after which a past sample will be weighted by 1/2 in the exponential smoothing window. @return The error code: if nonzero, can be #lsl_argument_error if an unknown flag was passed in.

Implementation

@ffi.Native<NativeLsl_smoothing_halftime>()
external int lsl_smoothing_halftime(lsl_inlet in$, double value);