Skip to content

PointsInput

type PointsInput =
| Vectors
| MatrixLike
| number[][];

Defined in: core/vectors.ts:54

What every public entry point accepts for a set of points.

VectorInput minus the bare Float64Array, which carries no column count and so cannot be interpreted on its own. Pass one of those through toVectors with an explicit d first:

analyze(toVectors(buffer, 8), toVectors(projection, 2));

Conversion is free for an existing Vectors and for a DruidJS Matrix — both are adopted without copying. A number[][] is copied into a flat Float64Array on every call, so when reading several measures off the same points, convert once with toVectors and reuse the result.