amp.freq.Rd
Computes amplitude(s) and frequencies(s) of a wave form, amongst other things, based on a sampling frequency
amp.freq(x = NULL, y, sf = 100)
Numeric; x position (or sample number)
numeric; y position
numeric; sample frequency (i.e., how often was x and y sampled) in Hz
a list with of the following:
a
: a numeric vector of amplitudes ('a').
pos
: a numeric vector of the position of critical points.
f
: a numeric vector of the peak-to-peak frequencies (if the first critical point is a peak) or trough-to-trough frequencies (if the first critical point is a trough).
snr
:a numeric value of the signal to noise ratio.
computes amplitudes as half the distance between each successive pair of critical points (i.e., points where the derivative is zero).
features