Behavior
A behavior is a value of type A whose value varies over time.
It can be thought of from a denotational perspective as a function (Time) -> A
.
Visually, you can think of a Behavior as a graph where the x-axis represents time, the y-axis represents different values of A, and for each time value there is a different value of A, for example:
^
| * **
| * ** *
| * * * *
| *** ***
-------------------->
Behaviors have no other restrictions, and can be either continuous or discrete functions of time. In yafrl, behaviors can even be nondeterministic, acting as good representations of external inputs to a program.
Inheritors
Types
A generic continuous function of time.
A polynomial in time.
A non-numeric behavior derived from sampling an external signal.
Functions
Integrate the behavior with respect to the current Timeline's clock time.
Integrate the behavior with respect to the current Timeline's clock time, supplying an explicit VectorSpace instance.
Used to support dirac impulses in behaviors.
Calculates the value at the specified time.
Apply a function to the time used to sample the behavior.