matrix.standardize {adelie} | R Documentation |
Creates a standardized matrix.
Description
Creates a standardized matrix.
Usage
matrix.standardize(mat, centers = NULL, scales = NULL, ddof = 0, n_threads = 1)
Arguments
mat |
The underlying matrix. |
centers |
The center values. |
scales |
The scale values. |
ddof |
Degrees of freedom. |
n_threads |
Number of threads. |
Value
Standardized matrix.
Examples
n <- 100
p <- 20
X <- matrix(rnorm(n * p), n, p)
out <- matrix.standardize(matrix.dense(X))
[Package adelie version 1.0.1 Index]