R/feat_FFTwindow.R

Defines functions feat_laplacian feat_FFTwindow

feat_FFTwindow <- function(wndSize, wndStep){

  partition <- seq(from = 1, to = 240-wndSize+1, by = wndStep)

  function(i){
    wnds <- lapply(partition, function(s) {
      i[1:wndSize + s-1, ]
    })
    tmp <- do.call(c, lapply(wnds, function(k){ as.numeric(abs(mvfft(k)))  }))
    as.vector(tmp)
  }
}

feat_laplacian <- function(data){
  as.vector(data)
}
Dardare/prjct documentation built on May 6, 2019, 1:36 p.m.