Coder Social home page Coder Social logo

algorithm-burg's Introduction

NAME

    Algorithm::Burg - extrapolate time series using Burg's method

VERSION

    version 0.001

SYNOPSIS

DESCRIPTION

    The Algorithm::Burg module uses the Burg method to fit an
    autoregressive (AR) model to the input data by minimizing (least
    squares) the forward and backward prediction errors while constraining
    the AR parameters to satisfy the Levinson-Durbin recursion.

    DISCLAIMER: This is work in progress! The code is buggy and the
    interface is subject to change.

ATTRIBUTES

 coefficients

    AR model polynomial coefficients computed by the train method.

 order

    AR model order

 series_tail

    Store the last "order" terms of the time series for "predict($n)".

METHODS

 train($time_series)

    Computes vector of coefficients using Burg algorithm applied to the
    input source data $time_series.

 predict($n)

    Predict $n next values for the time series. If $n is 0 or bigger than
    "order", assume $n = "order".

        #!/usr/bin/env perl;
        use strict;
        use warnings qw(all);
        use Algorithm::Burg;
        ...;
        my $burg = Algorithm::Burg->new(order => 150);
        $burg->train(\@time_series);
        my $result = $burg->predict();

REFERENCES

      * Burg's Method, Algorithm and Recursion
      <http://www.emptyloop.com/technotes/A%20tutorial%20on%20Burg's%20meth
      od,%20algorithm%20and%20recursion.pdf>

      * C++ implementation
      <https://github.com/RhysU/ar/blob/master/collomb2009.cpp>

      * Matlab/Octave implementation
      <https://gist.github.com/tobin/2843661>

      * Python implementation
      <https://github.com/MrKriss/Old-PhD-Code/blob/master/Algorithms/burg_
      AR.py>

AUTHOR

    Stanislaw Pusep <[email protected]>

COPYRIGHT AND LICENSE

    This software is copyright (c) 2014 by Stanislaw Pusep.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

algorithm-burg's People

Contributors

creaktive avatar

Watchers

 avatar  avatar  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.