Displaying 1 result from an estimated 1 matches for "coeffit".
2006 Jan 13
1
first derivative of a time series
...ly.
This is a snipbit of what I've been trying:
--------
library(cyclones)
## read in my 1-column of values, each line is a different time step
ts.table <- read.table("timeseries.1d")
ts.values <- ts.table[,1]
## first calculate coefficients to pass to coefDeriv
ts.coef <- coefFit(ts.values)
d.ts <- coefDeriv(ts.coef)
-------
However, when I try to look at d.ts$y.deriv, assumning that this will plot the
derivative I want, all the numbers are huge (on the order of e+02 to e+08) when
my original time series ranged from 0 to 970. Am I going about this the wrong
way? Or are...