View source: R/spectral_methods.R
InstantaneousFrequency | R Documentation |
Calculates instantaneous frequency from an analytic signal.
InstantaneousFrequency(asig, tt, method = "arctan", lag = 1)
asig |
Analytic signal produced by |
tt |
Sample times |
method |
How the instantaneous frequency is calculated.
|
lag |
Differentiation lag, see the |
instfreq |
Instataneous frequency in 1/time |
The "arctan"
method was adapted from the hilbertspec
function in the EMD
package.
!!IMPORTANT!!
The numeric differentiation may be unstable for certain signals.
For example, high frequency sinusoids near the Nyquist frequency can give inaccurate results when using the "chain"
method.
When in doubt, use the PrecisionTester
function to check your results!
Daniel C. Bowman danny.c.bowman@gmail.com
PrecisionTester
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.