📄 prep_tst.m
字号:
% File Name : prep_tst.m
% Purpose : prepare testing patterns
% Author : Hossam E. Mostafa Abdelbaki, School of Computer Science,
% University of Centeral Florida (UCF).
% Release : ver. 1.0.
% Date : October 1998.
%
% RNNSIM is a software program available to the user without any
% license or royalty fees. Permission is hereby granted to use, copy,
% modify, and distribute this software for any purpose. The Author
% and UCF give no warranty, express, implied, or statuary for the
% software including, without limitation, waranty of merchantibility
% and warranty of fitness for a particular purpose. The software
% provided hereunder is on an "as is" basis, and the Author and the
% UCF has no obligation to provide maintenance, support, updates,
% enhancements, or modifications.
%
% RNNSIM is available for any platform (UNIX, PCWIN, MACHITOCH).
% It runs under MATLAB ver. 5.0 or highrer.
%
% User feedback, bugs, or software and manual suggestions can
% be sent via electronic mail to : ahossam@cs.ucf.edu
%%%%%%%%%%%%Function: Preparing Inputs for Testing %%%%%%%%%%%%%%%
%####### Setting the Excitatory and Inhibitatory Training Patterns ########
N_Test_Patterns = N_Patterns;
Applied_lambda = zeros(N_Test_Patterns,N_Input);
Applied_LAMBDA = zeros(N_Test_Patterns,N_Input);
%yyy = size(TEST_INPUT);
%N_Test_Patterns = yyy(1);
for i=1:N_Test_Patterns
for j=1:N_Input
if (TEST_INPUT(i,j) >= 0)
Applied_LAMBDA(i,j) = TEST_INPUT(i,j);
elseif(TEST_INPUT(i,j) <0)
Applied_lambda(i,j)= -TEST_INPUT(i,j);
end
end
end
%##### Preparing LAMBDA #################
fill = zeros(N_Test_Patterns , N_Total - N_Input);
LAMBDA=[Applied_LAMBDA fill];
%##### Preparing lambda #################
%Applied_lambda=zeros(N_Test_Patterns,N_Input);
fill = zeros(N_Test_Patterns , N_Total - N_Input);
lambda=[Applied_lambda fill];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -