ixfx
    Preparing search index...

    Function averager

    • Uses Numbers.movingAverageLight to keep track of average x, y and z values.

      // Create averager
      const averager = Points.averager(`moving-average-light`);

      // Call function with a point to add it to average
      // and return the current average.
      averager(somePoint); // Yields current average {x,y,z?}

      Parameters

      • kind: "moving-average-light"
      • opts: Partial<{ scaling: number }>

        Scaling parameter. Higher means more smoothing, lower means less (minimum: 1). Default: 3

      Returns PointAverager