Algorithm::Burg - extrapolate time series using Burg's method
version 0.001
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.
AR model polynomial coefficients computed by the train
method.
AR model order
Store the last "order" terms of the time series for "predict($n)".
Computes vector of coefficients using Burg algorithm applied to the input source data $time_series
.
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();
Stanislaw Pusep <stas@sysd.org>
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.