STLTcurve: Short-term/Long-term Average curve

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Get short-term average long-term verage ratio curve for picking

Usage

1
2
STLTcurve(y, dt = 0.008, fwlen = 125, bwlen = 125,
stretch = 1000, MED = 255, PLOT = FALSE)

Arguments

y

signal

dt

sample rate

fwlen

forward window, number of samples

bwlen

back window length, number of samples

stretch

stretch multiplier

MED

median smoother

PLOT

logical, TRUE=plot diagnostics

Details

Uses C-code and fast tanking algorithm written at UW

Value

sample to significant change in ratio curve

Author(s)

Jonathan M. Lees<jonathan.lees.edu>

See Also

PSTLTcurve

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(CE1)

y  = CE1$y

DT = CE1$dt



sy = STLTcurve(y, dt=DT, fwlen =  25,  bwlen  = 25,
stretch=1000, MED=255, PLOT=FALSE)

par(mfrow=c(2,1))

plot(CE1$x, CE1$y, type='l')
plot(CE1$x,sy$rat, type='l')


Search within the RSEIS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.