MATLAB Function Reference
  Go to function:
    Search    Help Desk 
add_rules    

adds specified number of rules

Syntax

Description

add_rules(m,n) add n rules to the model m. When rules are added the optimparams property of the model is set to contain the parameters of the newly added rules. This allow to optimise by default every parameters of a TS system.

add_rules(m,n,model_code) add n rules to the model m, model_code is a cell array {x y z}. x is the type of TS model ('crossproduct' or 'projected'). For 'crossproduct' models, y is the type of the membership functions ('gaussian', 'inversedist':

1/dist_mahal^(1/(m-1)))

and z is the type of the consequents ('linear'). For 'projected' systems, y specify the way rules are initially positioned ('standard': no positionment, 'rulegrid': rules evenly disposed on a grid defined by the fuzzy sets) and z is the type of the consequents ('linear'). Only rules of the same type can co-exist in a TS model.

Remarks

This function is used to specify the number and shape of the rules associated to the TS model.

[ Help Desk ]