31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

evalfis<br />

Purpose<br />

Syntax<br />

Description<br />

Perform fuzzy inference calculations<br />

output= evalfis(input,fismat)<br />

output= evalfis(input,fismat, numPts)<br />

[output, IRR, ORR, ARR]= evalfis(input,fismat)<br />

[output, IRR, ORR, ARR]= evalfis(input,fismat,<br />

numPts)<br />

evalfis has the following arguments:<br />

• input: anumberoramatrixspecifyinginputvalues.Ifinput is an<br />

M-by-N matrix, where N is number of input variables, then evalfis<br />

takes each row of input as an input vector and returns the M-by-L<br />

matrix to the variable, output, where each row is an output vector<br />

and L is the number of output variables.<br />

• fismat: a FIS structure to be evaluated.<br />

• numPts: an optional argument that represents the number of sample<br />

points on which to evaluate the membership functions over the input<br />

or output range. If this argument is not used, the default value of<br />

101 points is used.<br />

The range labels for evalfis are as follows:<br />

• output: the output matrix of size M-by-L, where M represents the<br />

number of input values specified previously, and L is the number<br />

of output variables for the FIS.<br />

The optional range variables for evalfis are only calculated when the<br />

input argument is a row vector, (only one set of inputs is applied).<br />

These optional range variables are<br />

• IRR: the result of evaluating the input values through the<br />

membership functions. This matrix is of the size numRules-by-N,<br />

where numRules is the number of rules, and N is the number of<br />

input variables.<br />

4-15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!