Documentation

BGW.Tree.ContourInterpolation

Continuous interpolation of the discrete contour #

The time interval is normalized by the actual traversal duration, twice the number of edges. The usual affine interpolation is expressed by the finite sum of triangular hat functions. This also defines the singleton contour as the constant zero function, with no division by zero.

The time of discrete contour visit i, divided by the traversal duration. The denominator is one for the singleton tree, whose only index is zero.

Equations
Instances For

    The polygonal contour as a continuous function on the unit interval.

    Equations
    Instances For

      Multiplying a visit time by the traversal duration recovers its discrete index.

      @[simp]

      The continuous contour takes exactly the discrete height at every visit time.

      theorem BGW.PlaneTree.contourFunction_on_segment (t : PlaneTree) (i : ℕ) (s : ↑unitInterval) (hi : i + 1 < t.contour.length) (hlo : ↑i ≤ ↑(t.contour.length - 1) * ↑s) (hhi : ↑(t.contour.length - 1) * ↑s ≤ ↑i + 1) :
      have θ := ↑(t.contour.length - 1) * ↑s - ↑i; t.contourFunction s = (1 - θ) * ↑t.contour[i] + θ * ↑t.contour[i + 1]

      Between consecutive discrete visit times, the contour is their affine interpolation.