Main Content

getTunableValues

Obtain values of tunable parameters from fuzzy inference system

Description

example

paramvals= getTunableValues(fis,paramset)returns tunable parameter values of the fuzzy inference systemfis. To specify the parameter values to return, useparamset.

Examples

collapse all

Create a fuzzy inference system, and define the tunable parameter settings of inputs, outputs, and rules.

fis = mamfis('NumInputs',2,'NumOutputs',1); [in,out,rule] = getTunableSettings(fis);

Obtain tunable parameter values of the inputs, outputs, and rules of the fuzzy inference system.

paramVals = getTunableValues(fis,[in;out;rule]);

Input Arguments

collapse all

Fuzzy inference system, specified as amamfis,sugfis,mamfistype2,sugfistype2, orfistreeobject.

Tunable parameter settings, specified as an array of input, output, and rule parameter settings in the input FIS. To obtain these parameter settings, use thegetTunableSettingsfunction with the inputfis.

paramset可以输入、输出或rule parameter settings, or any combination of these settings.

Output Arguments

collapse all

Tunable parameter values, returned as an array. The order of the values inparamvalsmatches the order of the parameters inparamset.

You can modify these parameter values, and then set them in your FIS usingsetTunableValues.

Version History

Introduced in R2019a