search for: extrema_c2

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

Did you mean: extrema_c
2011 Feb 11
1
Help optimizing EMD::extrema()
...what sizes to set as the default pre-allocation length. Below I include code that demonstrates the speedup I achieved by eliminating calls to rbind(), and also demonstrates that only a few calls to c() seem to be responsible for most of the compute time. The files "extrema_c.R" and "extrema_c2.R" are available at: https://gist.github.com/822691 Any suggestions/help would be greatly appreciated. #load the EMD library for the default version of extrema library(EMD) #some data to process values = rnorm(1e4) #profile the default version of extrema Rprof(tmp <- tempfile()) temp =...