foldl-incremental-0.2.0.0: incremental folds

Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Foldl.Incremental.Simple

Contents

Description

Simple moving average style folds

Synopsis

incrementalize

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.

common simple folds

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