search for: do_sliding_for_a_window_duty_cycl

Displaying 1 result from an estimated 1 matches for "do_sliding_for_a_window_duty_cycl".

2012 Mar 03
1
Sliding Window in R (solved)
Dear all, you can find below my solution for sliding a window. Please find below the code for the two alternatives and the benchmarks.     install.packages('caTools') require(caTools) do_sliding_for_a_window_duty_cycle <- function(DataToAnalyse,  windowSize) {   data<-DataToAnalyse   out <- numeric()   elements<- numeric()   if (length(data[,1]) >= windowSize){       for (i in 1:(length(data[,1]) - windowSize +1  )) {         out[i] <- mean(data[i:(i + windowSize - 1), ])         elements[i]&...