Yampa-0.14.9: Elegant Functional Reactive Programming Language for Hybrid Systems
Copyright(c) Ivan Perez 2014-2022
(c) George Giorgidze 2007-2012
(c) Henrik Nilsson 2005-2006
(c) Antony Courtney and Henrik Nilsson Yale University 2003-2004
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainerivan.perez@keera.co.uk
Stabilityprovisional
Portabilitynon-portable -GHC extensions-
Safe HaskellSafe-Inferred
LanguageHaskell2010

FRP.Yampa.Loop

Description

Well-initialised loops.

Synopsis

Loops with guaranteed well-defined feedback

loopPre :: c -> SF (a, c) (b, c) -> SF a b Source #

Loop with an initial value for the signal being fed back.

loopIntegral :: (Fractional s, VectorSpace c s) => SF (a, c) (b, c) -> SF a b Source #

Loop by integrating the second value in the pair and feeding the result back. Because the integral at time 0 is zero, this is always well defined.