Skip to main content

Function: standardize()

standardize(data): number[]

Defined in: packages/echarts/src/math/linear-regression.ts:9

Standardize the data to have a mean of 0 and a standard deviation of 1.

Parameters

data

number[]

The data to standardize.

Returns

number[]

The standardized data.