sweep_template: Sweep template

Description Usage Arguments

View source: R/sweep-harmonic-template.R

Description

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

Usage

1
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/har18 documentation built on April 1, 2021, 9:22 p.m.