- sfConst :: a -> SF b a
- time :: SF () Double
- noise :: (Random a, RandomGen b) => b -> SF () a
- noiseR :: (Random a, RandomGen b) => (a, a) -> b -> SF () a
- rep :: Int -> SF a a -> SF a a
- cycle :: [a] -> SF () a
- timedCycle :: [(DTime, a)] -> SF () a
- data MemOp a
- memory :: a -> SF (MemOp a) a
- stateful :: (a -> a) -> a -> SF () a
- stateful2 :: (a -> b -> a) -> a -> SF b a
- integral :: SF Double Double
- broadcast :: Functor col => col sf -> a -> col (a, sf)
Documentation
Input: i1, i2, ... (ignored)
Output: x, x, ...
Input: (), (), ...
Outputs the sequence of the current time at each sample point
noise :: (Random a, RandomGen b) => b -> SF () aSource
Input: i1, i2, ... (ignored)
Outputs a sequence of random generated numbers using g0
noiseR :: (Random a, RandomGen b) => (a, a) -> b -> SF () aSource
Input: i1, i2, ... (ignored)
Outputs a sequence of random generated numbers using g0, with lh
indicating the minimum and maximum numbers that are allowed.
timedCycle :: [(DTime, a)] -> SF () aSource
memory :: a -> SF (MemOp a) aSource
Input: Read, Write x1, Read, ...
Output: x0, x1, x1, ...
stateful :: (a -> a) -> a -> SF () aSource
Input: (), (), (), ...
Output: x0, f x0, f (f x0), ...
stateful2 :: (a -> b -> a) -> a -> SF b aSource
Input: i1, i2, i3, ...
Output: x0, f x0 i1, f (f x0 i1) i2, ...