kin.smooth.repair: Smooth and repair kinematic data by interpolating missing...

View source: R/functions_smooth_derive.r

kin.smooth.repairR Documentation

Smooth and repair kinematic data by interpolating missing values

Description

This function smooths kinematic data and repairs gaps in the signal by interpolating missing values, but only if the gaps are smaller than a specified maximum number of frames.

Usage

kin.smooth.repair(
  x,
  y.raw,
  lam = 1e-18,
  maxFrames = 18,
  fingersOccluded,
  framesOccluded
)

Arguments

x

Numeric vector containing the time or frame indices

y.raw

Numeric vector containing the raw kinematic data to be smoothed and repaired

lam

Smoothing parameter lambda (default: 1e-18)

maxFrames

Maximum number of consecutive frames that can be interpolated (default: 18)

fingersOccluded

Binary vector indicating which frames contain occluded fingers (1) or not (0)

framesOccluded

Numeric vector containing the count of consecutive occluded frames

Value

A numeric vector containing the smoothed and repaired kinematic data


ccamp83/kinesis documentation built on July 4, 2025, 6:19 p.m.