integrate

inline fun <T> Behavior<T>.integrate(initial: T? = null): Behavior<T>(source)

Integrate the behavior with respect to the current Timeline's clock time.

Note: T must have a VectorSpace instance -- otherwise the function will throw an IllegalArgumentException at runtime.

Parameters

initial

Optional constant of integration -- uses the zero value of the vector space by default.


fun <T> Behavior<T>.integrate(vectorSpace: VectorSpace<T>, initial: T? = null): Behavior<T>(source)

Integrate the behavior with respect to the current Timeline's clock time, supplying an explicit VectorSpace instance.