Probnet-0.1.0.0: Geometric Extrapolation of Integer Sequences with error prediction
Safe HaskellSafe-Inferred
LanguageHaskell2010

Probnet

Description

Probnet 0.1.0.0 | Usage : probnet 1 [1,2,3,5,8,13] | Result : [1,2,3,5,8,13,21]

Synopsis

Documentation

percents :: RealFrac a => [a] -> [a] Source #

Ratios between consecutive elements (logarithmic differences).

predict1 :: RealFrac a => [a] -> a Source #

This is to assume that the next ratio is close to that of the element with the closest value to the last element; in case of monotonic data (always increasing or always decreasing) it is the last ratio.

predict :: (Integral b, RealFrac a) => Int -> [a] -> [b] Source #

Generates new prediction

probnet :: (Integral b, RealFrac a) => Int -> [a] -> [b] Source #

Generate new prediction with error prediction