netwire-2.0.1: Generic automaton arrow transformer and useful tools

MaintainerErtugrul Soeylemez <es@ertes.de>

Control.Wire.Prefab.Calculus

Contents

Description

Wires for calculus over time.

Synopsis

Integration

integral :: forall e t v (>~). (ArrowClock >~, Num t, Scalar v ~ t, Time >~ ~ t, VectorSpace v) => v -> Wire e >~ v vSource

Integrate over time.

  • Depends: Current instant.

Differentiation

derivative :: forall e t v (>~). (ArrowClock >~, Fractional t, Scalar v ~ t, Time >~ ~ t, VectorSpace v) => Wire e >~ v vSource

Calculates the derivative of the input signal over time.

  • Depends: Current instant.