z-score rescaling

版本 1.0.0.0 (1.2 KB) 作者: Wei-Rong Chen
Rescale the input data by z-score.
89.0 次下载
更新时间 2016/10/3

查看许可证

% z-score rescaling.
% Input:
% 'data' : input data matrix (nSample X nFeatures, if dim = 1) or (nFeatures X nSamples, if dim = 2)
% Optional inputs:
% 'flag' : 0 {default} using sample std (N-1)
% 1 using population std (N)
% 'mean_array', 'sd_array' : (1 X nFeatures) optional inputs of mean and sd
% for the calculation of z-score. If not provided, mean and sd will be
% calculated based on the input 'data'.
% 'dim' : {defalt = 1} dimention along which the averaging and calculation
% of sd is performed for z-scoring.
% Output:
% 'zcoredData' : (nSample X nFeatures) output data after z-score rescaling.
% 'mean_array', 'sd_array' : (1 X nFeatures, if dim = 1) or (nFeatures X 1, if dim = 2) arrays for mean and sd
% WR Chen 03/16

引用格式

Wei-Rong Chen (2024). z-score rescaling (https://www.mathworks.com/matlabcentral/fileexchange/59406-z-score-rescaling), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Data Acquisition Toolbox Supported Hardware 的更多信息
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0