⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 snv.m

📁 PRINCIPLE: Removal of the row mean from each row, followed by division of the row by the respective
💻 M
字号:
%#									
%#  function [xsnv]=snv(x)						
%#									
%#  AIM: 	Standard Normal Variate Transformation			
%#		Row centering, followed by row scaling.			
%#									
%#  PRINCIPLE:  Removal of the row mean from each row, followed 	
%#              by division of the row by the respective row	 	
%#		standard deviation.		 		 	
%# 									
%#  INPUT:	x: (m x n) matrix with m spectra and n variables	
%#			 						
%#  OUTPUT:	xsnv: (m x n) matrix containing snv transformed spectra	
%#									
%#  AUTHOR: 	Andrea Candolfi				 		
%#	    	Copyright(c) 1997 for ChemoAC				
%#          	FABI, Vrije Universiteit Brussel            		
%#          	Laarbeeklaan 103 1090 Jette				
%#    	    								
%# VERSION: 1.1 (28/02/1998)						
%#									
%#  TEST:   	Roy de Maesschalck, Menghui Zhang (2002)					
%#									

function [xsnv]=snv(x);	

[m,n]=size(x);
xsnv=(x-mean(x')'*ones(1,n))./(std(x')'*ones(1,n));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -