localizationSD: Get the standard deviation of localization using a spline as...

View source: R/localization.R

localizationSDR Documentation

Get the standard deviation of localization using a spline as 'mean'.

Description

Get the standard deviation of localization using a spline as 'mean'.

Usage

localizationSD(
  df,
  unit = "cm",
  locvar = "tap",
  handvar = "hand",
  r = 1,
  CC = TRUE,
  spar = 0.99,
  rm.Extr = FALSE
)

Arguments

df

Data frame with localization data.

unit

The unit of position data (default: cm).

locvar

The variable name of localization responses (default: tap).

handvar

The variable name of hand position (default: hand).

r

Radius of localization arc (default: 12).

CC

(boolean) Perform circle correction (default: TRUE).

spar

Smoothing parameter for the spline (0,1) (default: 0.99).

rm.Extr

(boolean) Remove the highest and lowest reach angles before spline interpolation (after fitting the spline).

Value

A spline object that predicts localization errors over reach angle.


thartbm/handlocs documentation built on Feb. 18, 2025, 10:53 p.m.