Home > @ahrbf > simrbf.m

simrbf

PURPOSE ^

SIMRBF Simulates network response for given set of inputs

SYNOPSIS ^

function [Y,H,net] = simrbf(net,X)

DESCRIPTION ^

 SIMRBF Simulates network response for given set of inputs
   Input:
       net: ahrbf class object
       X  : Matrix of inputs, one input per column
   Output:
       Y  : Network output
       H  : Hidden layer output

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [Y,H,net] = simrbf(net,X)
0002 % SIMRBF Simulates network response for given set of inputs
0003 %   Input:
0004 %       net: ahrbf class object
0005 %       X  : Matrix of inputs, one input per column
0006 %   Output:
0007 %       Y  : Network output
0008 %       H  : Hidden layer output
0009 
0010 % Satrajit Ghosh, SpeechLab, Boston University. (c)2001
0011 % $Header: /mnt/localhd/cvsdir/MODELLING/NEWDIVA/@ahrbf/simrbf.m,v 1.1.1.1 2006/10/06 18:20:23 brumberg Exp $
0012 
0013 % $NoKeywords: $
0014 
0015 % Iterate through all the inputs and create a matrix of outputs
0016 Y = zeros(length(net.out),size(X,2));
0017 if nargin>1,
0018     H = zeros(length(net.h),size(X,2));
0019 end;
0020 
0021 for i=1:size(X,2),
0022     net = netout(net,X(:,i));
0023     Y(:,i)  = net.out;
0024     if nargin>1,
0025         H(:,i)  = net.h;
0026     end;
0027 end;

Generated on Tue 27-Mar-2007 12:06:24 by m2html © 2003