Namespace Data

Processing streams of data. Read more in the docs

  • clamp: Restrict a number to a given range
  • clampIndex: Restrict a number to be within the size of an array
  • flip: Invert a relative number
  • interpolate: Mix between two numbers by an amount
  • interpolateAngle: Mix between two angles by an amount
  • scale: Scale a value from an input range to an output range
  • wrap: Wraps a value to be within a range
  • wrapInteger: Wraps an integer to be within a range
  • Bipolar: Module for working with bipolar values

Averaging

Normalise sub-module

Trackers

Trackers are useful for tracking a series of data over time.

  • numberTracker: Tracks min, max and average of a stream of numbers

  • intervalTracker: Tracks min, max and average time interval between events

  • pointTracker: Tracks the spatial change of x,y coordinates. Useful for tracking a mouse cursor, for example.

  • pointsTracker: Tracks changes in multiple x,y coordinates. Useful for tracking each finger touch on a screen, for example.

  • frequencyMutable: Count occurences of a value

  • Pool.Pool: Manage a shared set of resources

Example: Importing

// If library is stored two directories up under `ixfx/`
import {movingAverage} from '../../ixfx/dist/data.js';
// Import from web
import {movingAverage} from 'https://unpkg.com/ixfx/dist/data.js'

Index

Namespaces

Classes

Type Aliases

Variables

Functions