resample: QTS Resampling

View source: R/interface.R

resampleR Documentation

QTS Resampling

Description

This function performs uniform resampling using SLERP.

Usage

resample(x, tmin = NA, tmax = NA, nout = 0L, disable_normalization = FALSE)

## S3 method for class 'qts'
resample(x, tmin = NA, tmax = NA, nout = 0L, disable_normalization = FALSE)

## S3 method for class 'qts_sample'
resample(x, tmin = NA, tmax = NA, nout = 0L, disable_normalization = FALSE)

Arguments

x

An object of class qts or qts_sample.

tmin

A numeric value specifying the lower bound of the time interval over which uniform resampling should take place. It must satisfy tmin >= min(qts$time). Defaults to NA in which case it is set to min(qts$time).

tmax

A numeric value specifying the upper bound of the time interval over which uniform resampling should take place. It must satisfy tmax <= max(qts$time). Defaults to NA in which case it is set to max(qts$time).

nout

An integer specifying the size of the uniform grid for time resampling. Defaults to 0L in which case it uses the same grid size as the input QTS.

disable_normalization

A boolean specifying whether quaternion normalization should be disabled. Defaults to FALSE in which case the function makes sure that quaternions are normalized prior to performing SLERP interpolation.

Value

An object of the same class as the input argument x in which quaternions are uniformly sampled in the range ⁠[tmin, tmax]⁠.

Examples

resample(vespa64$igp[[1]])
resample(vespa64$igp)

astamm/squad documentation built on Jan. 26, 2024, 5:30 p.m.