LinPred(3pm)
โจ NAME โจ
PDL::Filter::LinPred โ linear predictive filtering ๐ (yes bestie, we're predicting the future, kinda)
๐ธ SYNOPSIS ๐ธ
$x = PDL::Filter::LinPred->new(
{NLags => 10,
LagInterval => 2,
LagsBehind => 2,
Data => $dat});
($pd,$corrslic) = $x->predict($dat);
๐ฆ DESCRIPTION ๐ฆ
okay so picture this: it's a filter, but its whole personality is linear prediction. It looks at a data stream and tries to guess the next value as accurately as it possibly can, and the filtered data it gives you back is that predicted value. no cap. ๐ฎ
The parameters are giving very much "here's how you tune me":
NLagsโ number of time lags used for prediction ๐LagIntervalโ how many points each lag should beLagsBehindโ so if, for some strange reason ๐ซฃ, you want to predict not the next value but the one after that, this is your girl. Usually f(t) is predicted from f(t-1) and f(t-2) etc., but withLagsBehind => 2, f(t) is predicted from f(t-2) and f(t-3).Dataโ the input data, which may contain other dimensions past the first (time). Those extraneous dimensions are assumed to represent epochs, so the data is just concatenated. simple as that ๐AutoCovarโ as an alternative toData, you can just hand over the temporal autocorrelation function instead.Smoothโ don't do prediction or filtering, just do smoothing. it's giving self-care โจ
The method predict gives you a prediction for some data plus a corresponding slice of the data, if it's evaluated in list context. That slice is there so you can, if you wish, easily plot the two atop each other. cute, right? ๐
The rest of the documentation is under lazy evaluation. ๐ (she said what she said)
๐ซถ AUTHOR ๐ซถ
Copyright (C) Tuomas J. Lukka 1997. All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included in the file. ๐
okay that's the whole page bestie, go forth and filter ๐โ๏ธ
this was perl v5.42.3, dated 2026-08-19 โ mwah, xoxo, LinPred(3pm) out ๐
๐ฆ where this page comes from
- ubuntu stonking: libpdl-filter-perl 2.098-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms