|__/\/||\/_ . :.|
|/ _ _ _ __ / . .|
|/ . .. .:|
|.: . .:|
TrendCalculus: Streaming Multi-Scale Trend Change Detection Algorithm
Author: Andrew J Morgan
TrendCalculus is my algorithm for enabling fast, bottom up, hierarchical trendwise partitioning of timeseries data using a model-free approach which is extremely efficient.
A method document that explains simply how the algorithm works is available here:
To learn how to run the code, check the help and version info using the -v option. A detailed help me and usage notes will be produced.
lua trendcalculus.lua -v
The scripts run like a command line app, accepting stdin or a named file using the -f option.
Test the software using the bash script for testing:
Calling TrendCalculus from R
A minimalistic integration with R included (but it is a bit of a hack). to use it: Install devtools. libary(devtools) then set the working directory to trendcalculus-public
setwd = "~/trendcalculus-public"
BP.Close <- BP.L[,4]
The output will be a data.table which can be used in further anlaysis.
Questions can be posted at the google group set up for the code, or you can ask them in person at one of the meetups that are held in London:
The code should work with zero dependencies. Execute it using luajit, lua 5.1 or lua 5.2. It should run out the box as is once you can execute lua on the command line.
Note: pl.lapp, csv, and date all all luarocks that I have embedded in this code already as part of the release. So nothing to do, nothing to install. Just run it.