Skip to content

Function: corrMatrix()

ts
function corrMatrix(columns): {
  size: number;
  values: Float64Array;
};

Defined in: stats/regression.ts:224

Pearson correlation matrix of columns, row-major and k×k. Feed it straight to addHeatmap with a diverging colormap and symmetricDomain.

Parameters

ParameterType
columnsreadonly ArrayLike<number>[]

Returns

ts
{
  size: number;
  values: Float64Array;
}

size

ts
size: number;

values

ts
values: Float64Array;

MIT licensed. WebGL2 required.