Git Product home page Git Product logo

trendcalculus-lua's Introduction

              |       |     
              |--\  /-|-.-.             .
              |__/\/  | \/_            . :.
               ___/ _   _  _  __   ___/ . .
              / ._|| | | || \/  \ /   \ . : .: 
              \_  \| |_| || | | || [ ] | .. 
              \___/|____/||_|_|_| \___/ ..
                                  / . ..  .:
                                   .: .  .:  
                

TrendCalculus: Streaming Multi-Scale Trend Change Detection Algorithm

Author: Andrew J Morgan

Version: 1.0.0

Source: https://bitbucket.org/bytesumo/trendcalculus-public

Description

TrendCalculus is my algorithm for enabling fast, bottom up, hierarchical trendwise partitioning of timeseries data using a model-free approach which is extremely efficient.

Further Documentation

A method document that explains simply how the algorithm works is available here:

https://github.com/bytesumo/TrendCalculus/blob/master/HowToStudyTrends_v1.03.pdf

How

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:

. test.sh

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

library(quantmod)

setwd = "~/trendcalculus-public"

load_all("R_tcalc")

getSymbols("BP.L")

BP.Close <- BP.L[,4]

head(BP.Close)

tc.data.table(BP.Close)

The output will be a data.table which can be used in further anlaysis.

Help

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:

See: https://groups.google.com/forum/#!forum/trendcalculus

http://www.meetup.com/Trendwise-Research-London

License

GPLv3

Dependencies

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.

References:

http://bytesumo.com/blog/2015/01/trendcalculus-data-science-studying-trends

https://bitbucket.org/bytesumo/trendcalculus-public

https://github.com/geoffleyland/lua-csv

https://github.com/stevedonovan/Penlight

http://tieske.github.io/date/

trendcalculus-lua's People

Contributors

bytesumoltd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.