testPhase | R Documentation |
calculatePhase
generates cosine waves with fixed periods but random
amplitudes and systematic phase shifts and sampled
at varying resolution to test phase recovery performance
via Discrete Fourier Transformation in calculatePhase
.
TODO: allow random phases, noise on period and general
addition of noise
testPhase(n = 5, cyc = 4, T = 24, res = 6, xlim = c(-T/res, T + T/res))
n |
number of cosines to generate |
cyc |
numbers of cycles to generate |
T |
period |
res |
resolution: samples per period |
xlim |
x-axis range to show, defaults to one period |
calculatePhase
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.