Copyright | (c) Antony Courtney and Henrik Nilsson Yale University 2003 |
---|---|

License | BSD-style (see the LICENSE file in the distribution) |

Maintainer | nilsson@cs.yale.edu |

Stability | provisional |

Portability | portable |

Safe Haskell | None |

Language | Haskell98 |

Derived utility definitions.

## Synopsis

- sampleWindow :: Int -> Time -> SF a (Event [a])

# Documentation

sampleWindow :: Int -> Time -> SF a (Event [a]) Source #

Window sampling

First argument is the window length wl, second is the sampling interval t. The output list should contain (min (truncate (T/t) wl)) samples, where T is the time the signal function has been running. This requires some care in case of sparse sampling. In case of sparse sampling, the current input value is assumed to have been present at all points where sampling was missed.