


Calculate the the performance index and the output of a fuzzy system.
function [PI,xd]=TestSystem(fis,TI,TIOld,OutTest,params,PerformanceIndexType)
Calculate the the performance index and the output of a fuzzy system
for a sample data set.
-------------------------------------------------------------------------
Parameters
-------------------------------------------------------------------------
fis - complex structure describing the fuzzy inference system
TI - cell array containing the observations in "new style" structures
obs - the new-style structure describing the observation
obs--name
|-FileName
|-mf(i)--name
|-type
|-params
|-paramsy
TIold - cell array containing the observations in "old style" structures
obsold - the old-style structure describing the observation
obsold(i)--name
|-type
|-params
|-paramsy
|-ObsName
OutTest - column vector containing the output sample data
params - structure describing the parameters of the inference method
PerformanceIndexType - type (No) of the applied performance index
-------------------------------------------------------------------------
Returned values
-------------------------------------------------------------------------
xd - row vector containing the defuzzified values
-------------------------------------------------------------------------
Remarks
-------------------------------------------------------------------------
Zsolt Csaba Johanyák, johanyak.csaba@gamf.kefo.hu, v. 1.0, 28. September 2007.