Copyright | (c) Henning Thielemann 2008 |
---|---|
License | GPL |
Maintainer | synthesizer@henning-thielemann.de |
Stability | provisional |
Portability | requires multi-parameter type classes |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
sumsStaticInt :: (C v, Write sig v) => Int -> sig v -> sig v
Like sums
but in a recursive form.
This needs only linear time (independent of the window size)
but may accumulate rounding errors.
ys = xs * (1,0,0,0,-1) / (1,-1) ys * (1,-1) = xs * (1,0,0,0,-1) ys = xs * (1,0,0,0,-1) + ys * (0,1)