streaming-fft-0.1.0.1: online streaming fft

Safe HaskellNone
LanguageHaskell2010

Streaming.FFT.Internal

Contents

Synopsis

Documentation

initialDFT :: forall m e. (RealFloat e, Prim e, PrimMonad m) => Window m e -> m (Transform m e) Source #

subDFT :: forall m e. (RealFloat e, Prim e, PrimMonad m) => Signal e -> Window m e -> Complex e -> Transform m e -> m (Transform m e) Source #

Compute FFT, F2, of a Window x2 given a new sample and the Transform of the old sample x1,

IN-PLACE. (F2 is a mutated F1)

O(n)

some stuff (???)

rToComplex :: Num e => e -> Complex e Source #

iToComplex :: Num e => e -> Complex e Source #

mkComplex :: e -> e -> Complex e Source #

getX :: Complex e -> e Source #

getY :: Complex e -> e Source #

updateWindow :: forall m e. (Prim e, PrimMonad m) => Window m e -> Complex e -> m () Source #

updateWindow' Source #

Arguments

:: (Prim e, PrimMonad m, RealFloat e) 
=> Window m e 
-> Complex e 
-> Int

how many zeroed bins. for dense enough streams, this will be 0 most of the time

-> m ()