Optionalcenter?: number[]The values subtracted from each column (R's scaled:center attribute); absent with center: false.
Optionalscale?: number[]The values each column was divided by (R's scaled:scale attribute); absent with scale: false.
The centred and scaled matrix, as an array of rows (R's returned matrix).
Centre and scale the columns of a matrix (array of rows; a vector is one column). Equivalent to R's
scale().centerandscalereport the values used (R's attributes), when any.