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

📄 pmntanh.m

📁 人工神经网络:MATLAB源程序用于训练测试
💻 M
字号:
%#								
%# function t = pmntanh(x)					
%#								
%# AIM:		Fast hyperbolic tangent function to be used in	
%# 		neural networks instead of the tanh provided by MATLAB.
%#								
%# INPUT:	x (n x m) : matrix of data to be transformed								
%#								
%# OUTPUT:	t (n x m) : matrix of data after projection on the 
%#			  hyperbolic tangent nonlinear transfer function				
%# 								
%# AUTHOR:	Magnus Norgaard, IAU/EI/IMM (1994)		
%#		Neural Network-Based System Identification Toolbox
%#		Web site : http://www.iau.dk/Projects/proj/nnsysid.html
%#								
%# VERSION: 1.1 (28/02/1998)			
%#								
%# TEST:	Frederic Despagne 		
%#								

function t = pmntanh(x)

t = 1-2./(exp(2*x)+1);

⌨️ 快捷键说明

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