function

evalfls - Evaluate fuzzy logic system

Calling Sequence

y=evalfls(x,fls,[npev])

Parameters

Description

evalfls evaluate the fuzzy logic system fls in points x and return values in y . The x parameters have dimension [npairs_of_inputs, number_of_inputs] , the output y have dimension [npairs_of_inputs, number_of_outputs] .

The npev parameter is optional in Mamdani case, the user can set the number of partitions of the output variable domain to evaluate the member functions for each output. This parameter can be a scalar (all outputs are evaluated with the same number of partitions) or vector (each element set the number of partitions for each output).The default value for all outputs is 1001 points.

Examples

// GET A FLS
fls=loadfls(flt_path()+"demos/fan1.fls");
// EVALUATE
y1=evalfls([50 50],fls)
y2=evalfls([50 20;50 50],fls,100)

See Also

fls_structure ,   newfls ,   scicos_fls ,  

Author

Jaime Urzua Grez