View source: R/sweep-harmonic-template.R
Sweeps a circular template over a circular vector and computes the cosine similarity at each possible offset.
1 | sweep_template(x, template, legacy = FALSE)
|
x |
(Numeric vector) The vector to be swept over. |
template |
(Numeric vector)
The template to sweep over |
legacy |
(Logical scalar)
Whether to use the legacy R implementation
(default = |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.