This function performs uniform resampling using SLERP.
resample(x, tmin = NA, tmax = NA, nout = 0L, disable_normalization = FALSE)# S3 method for qts
resample(x, tmin = NA, tmax = NA, nout = 0L, disable_normalization = FALSE)
# S3 method for qts_sample
resample(x, tmin = NA, tmax = NA, nout = 0L, disable_normalization = FALSE)
An object of the same class as the input argument x in which
quaternions are uniformly sampled in the range [tmin, tmax].
An object of class qts or qts_sample.
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).
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).
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.
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.
resample(vespa64$igp[[1]])
resample(vespa64$igp)
Run the code above in your browser using DataLab