foldl-incremental-0.2.0.0: incremental folds
Control.Foldl.Incremental.Simple
Contents
Description
Simple moving average style folds
Synopsis
incrementalizeSimple :: (a -> Double) -> Int -> Fold a Double Source
Incrementalize takes a function and turns it into a Fold where the step is an Increment similar to the typical step in a simple moving average calculation.
Fold
sma :: Int -> Fold Double Double Source
a simple moving average
sabsma :: Int -> Fold Double Double Source
simple absolute moving average
ssqma :: Int -> Fold Double Double Source
simple squared moving average
sstd :: Int -> Fold Double Double Source
simple standard deviation