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

Description Usage Arguments Value See Also Examples

View source: R/kin.2d.R

Description

Computes amplitude(s) and wavelength(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

Value

a list with amplitude "a", frequency "f", amplitude returned from a smoothed sign function "a.f" based on output from features, signal to noise ratio "snr".

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)

trackter documentation built on April 19, 2021, 1:08 a.m.