scale_matrix: Scale a matrix

View source: R/netzuko.R

scale_matrixR Documentation

Scale a matrix

Description

Scale a matrix

Usage

scale_matrix(x, mean_x = NULL, sd_x = NULL, intercept = F)

Arguments

x

The matrix to be scaled

mean_x

The means to subtract. Will be computed if NULL

sd_x

The standard deviation to devide. Will be computed if NULL

intercept

Indicates if the first column of x is an intercept (all 1's)

Value

A list containing the scaled matrix, and the mean and standard deviations used by scaling

Note

For Internal Use


billyhw/netzuko documentation built on March 23, 2022, 4:26 p.m.