ixfx
    Preparing search index...
    • Keeps track of average x, y and z values.

      When calling, you have to specify the averaging technique. At the moment only 'moving-average-light' is supported. This uses @ixfx/numbers.movingAverageLight under-the-hood.

      // 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"

        Averaging strategy

      • opts: Partial<{ scaling: number }>

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

      Returns PointAverager