<< addmf sciFLT addvar >>

sciFLT >> sciFLT > addrule

addrule

Add a new member function to a fls structure

Calling Sequence

fls=addrule(fls_input,rule_matrix)

Parameters

fls_input:

fuzzy logic system (as input).

fls:

fuzzy logic system (as output).

rule_matrix:

each row of the rule matrix represents one rule and has the form [in1_mf ... inM_mf out1_mf ... outN_mf connect weight]

where:

Description

To express:

"not" -- prepend a minus sign to the membership function index

"somewhat" -- append ".05" to the membership function index

"very" -- append ".20" to the membership function index

"extremely" -- append ".30" to the membership function index

"very very" -- append ".40" to the membership function index

To omit an input or output, use 0 for the membership function index. The consequent connective is always "and".

Examples

//   If (input_1 is mf_2) or (input_3 is not mf_1) or (input_4 is very mf_1),
//    then (output_1 is mf_2) and (output_2 is mf_1^0.3).
//    fls=addrule(fls,[2 0 -1 4.2 2 1.03 0 1]);

See also

Authors


Report an issue
<< addmf sciFLT addvar >>