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
7
8
9
## Not run: 
#Compute waveform patterns
x <- seq(0,pi,0.1)
y <- sin(x^1.3*pi)
plot(x,y)

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

## End(Not run)

trackter documentation built on Aug. 28, 2019, 5:06 p.m.