Learn R Programming

trackter (version 0.1.1)

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

Description

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

Usage

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

Run this code
# 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)

# }

Run the code above in your browser using DataLab