powered by
Naive routine to remove trend from the data.
MFT.filterdata(x, filterwidth = NULL, filtersigma = NULL)
numeric vector, input sequence of random variables.
postive interger, < length(x)/2, number of data points left and right of the current value that are taken into account for Gaussian smoothing.
numeric, > 0, standard deviation of Gassian kernel.
invisible
filtered data (for filtering the first and last (filterwidth many) data points of the original series cannot be evaluated and are omited)
orignal data, but the first and last (filterwidth many) data point are omitted
trend that is removed by filtering. That is xfiltered = xraw - xtrend
orignal data
number of data points left and right of the current value that are taken into account for Gaussian smoothing
standard deviation of the Gaussian kernel
Michael Messer, Hendrik Backhaus, Albrecht Stroh and Gaby Schneider (2019+). Peak detection in times series
MFT.peaks, plot.MFT, summary.MFT, MFT.rate, MFT.variance, MFT.mean
# NOT RUN { set.seed(0) # Normally distributed sequence with negative trend x <- rnorm(1000,mean=seq(5,0,length.out=1000)) MFT.filterdata(x) MFT.filterdata(x,filterwidth=200,filtersigma=200) # }
Run the code above in your browser using DataLab