Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ethan Smith pointed out significant performance improvement from replacing the rollapply() call with WMA(). Unit: milliseconds expr min lq mean median uq max neval ALMA(z) 10.692501 11.2338510 12.426196 11.5029515 11.944251 33.3690 100 ALMA.new(z) 0.403302 0.4692515 0.688744 0.5237505 0.575451 17.0059 100 The rollapply() solution handled multi-column inputs. So initialize the result and loop over the columns. Add a try.xts() at the beginning of the function to handle cases where 'x' is a vector. Closes #117.
- Loading branch information