sweep_template: Sweep template

View source: R/model-har18.R

sweep_templateR Documentation

Sweep template

Description

Sweeps a circular template over a circular vector and computes the cosine similarity at each possible offset.

Usage

sweep_template(x, template, legacy = FALSE)

Arguments

x

(Numeric vector) The vector to be swept over.

template

(Numeric vector) The template to sweep over x. Should have the same dimensionality as x.

legacy

(Logical scalar) Whether to use the legacy R implementation (default = FALSE). Otherwise the faster C++ implementation is used.


pmcharrison/incon documentation built on Feb. 12, 2024, 3:18 a.m.