standardize.m
来自「lasso算法是stanford的tibshirani提出的一种变量子集选择算法」· M 代码 · 共 11 行
M
11 行
function X = standardize(X)
% STANDARDIZE Standardize the observations of a data matrix.
% X = STANDARDIZE(X) centers and scales the observations of a data
% matrix such that each variable (column) has unit variance.
%
% Author: Karl Skoglund, IMM, DTU, kas@imm.dtu.dk
[n p] = size(X);
X = center(X);
X = X./(ones(n,1)*std(X,1));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?