amp.freq: Computes amplitude and frequency of wave-like data

Description Usage Arguments Details Value See Also Examples

View source: R/kin.2d.R

Description

Computes amplitude(s) and frequencies(s) of a wave form, amongst other things, based on a sampling frequency

Usage

1
amp.freq(x = NULL, y, sf = 100)

Arguments

x

Numeric; x position (or sample number)

y

numeric; y position

sf

numeric; sample frequency (i.e., how often was x and y sampled) in Hz

Details

computes amplitudes as half the distance between each successive pair of critical points (i.e., points where the derivative is zero).

Value

a list with of the following:

See Also

features

Examples

1
2
3
4
5
6
#Compute waveform patterns
x <- seq(0,pi,0.1)
y <- sin(x^1.3*pi)
plot(x,y)

amp.freq(x=x,y=y)

ckenaley/trackter documentation built on Feb. 11, 2022, 6:43 a.m.