LinPred(3pm)

๐Ÿ“ฆ
version 2.098 ยท 2 versions
, in ubuntu stonking

โœจ 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 be
  • LagsBehind โ€” 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 with LagsBehind => 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 to Data, 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