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 averagerconst 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?} Copy
// Create averagerconst 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?}
Averaging strategy
Scaling parameter. Higher means more smoothing, lower means less (minimum: 1). Default: 3
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.