📄 norm_qwt.m
字号:
function [G,mG,stdG]=norm_qwt(G1)% Normalises the source water type (SWT) matrix G1% and calculate standarddeviation and mean %% INPUT:% G1 : Input nonnormalized SWt matrix%% OUTPUT:% G : normalized SWT matrix% mG : mean original SWT matrix% stdG : standrddeviation of original SWT matrix% % called by OMP_MAIN.M%%% This program is part of the OMP package from:% Institut fuer Meereskunde% J. Karstensen % Troplowitzstr. 7% 22529 Hamburg% Germany%% BUGS: karstens@ifm.uni-hamburg.de[m,n]=size(G1); % number of water types% mean and standarddeviation of SWT mG = mean(G1');stdG = std(G1');% standardize QWT for m eq. 7for i=1:n for kkk=1:m-1 G(kkk,i)=(G1(kkk,i)-mG(kkk))/stdG(kkk); end G(m,i)=G1(m,i); % mass untouchedend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -