\ \
|
:
fis2 = rmvar (fis, varType, varIndex)
[fis2, errorStr] = rmvar (fis, varType, varIndex)
:
. rmmf 3 :
- fis ;
- varType . : input' ; output' ;
- varIndex . .
rmmf , . , . .
rmmf 2 :
- fis2 varIndex;
- errorStr , .
:
a=readfis(tipper);
b=rmvar(a, input, 1)
service Tipper.
\ \
|
:
fis2 = setfis (fis, fisprop, propvalue)
fis2 = setfis (fis, vartype, varindex, varprop, propvalue)
fis2 = setfis (fis, vartype, varindex, mf, mfindex, mfprop, propvalue)
:
. setfis , :
- fis ;
- fisprop , . :
AggMethod ;
AndMethod ;
DefuzzMethod ;
ImpMethod ;
InLabels ;
InMfParams ;
Name ;
OrMethod ;
OutLabels ;
OutMfParams ;
Type ( );
RuleList ;
- propvalue ;
- vartype , . : input ; output ;
- varindex , ;
- varprop , . :
Name ;
Range ;
NumMfs ;
|
|
- mf- ;
- mfindex -, ;
- mfprop , . :
Name ();
'Type' ;
'Params' .
:
fis = readfis (tipper);
fis = setfis (fis, DefuzzMethod, mom)
Tipper.
.
setfis fis2 .
\ \
|
:
showfis (fis)
:
showfis fis:
Name ;
Type ;
Inputs/Outputs ;
NumInputMFs -, ;
NumOutputMFs - -, ;
NumRules ;
AndMethod - ;
OrMethod ;
ImpMethod ;
AggMethod - ;
DefuzzMethod ;
InLabels ;
OutLabels ;
InRange ;
OutRange ;
InMFLabels - ;
OutMFLabels - ;
InMFTypes ;
OutMFTypes ;
InMFParams ;
OutMFParams ;
Rule Antecedent (-) ;
Rule Consequent (-) ;
Rule Weigth ;
Rule Connection .
:
fis = readfis (tipper);
fis = showfis (fis)
Tipper.
\ \
|
:
outStr = showrule (fis, ruleIndex, ruleFormat, lang)
:
showrule outStr, fis. , . showrule :
- fis , ;
- ruleIndex . . , ;
- ruleFormat . :
verbose ;
symbolic ;
indexed .
verbose;
|
|
- lang - verbose. :
'english' ;
'francais' ;
'deutsch' .
.
:
fis = readfis (tipper);
showfis (fis)
Tipper.
\ \
|
:
y = sigmf (x, params)
:
, :
a ;
.
sigmf . sigmf :
- x , ;
- params . [a c].
sigmf y, x.
:
x = 0: 0.1: 10;
y1 = sigmf (x, [2 4]);
y2 = sigmf (x, [1 4]);
y3 = sigmf (x, [1 4]);
y4 = sigmf (x, [2 4]);
plot (x, [y1; y2; y3; y4])
title ('sigmf: a=-2,,2, c=4')
ylim ([0 1.05])
legend (a=-2, a=-1, a=1, a=2)
===================================================================
[0, 10].
\ \
| S- |
:
y = smf (x)
:
smf S- . , 0 1. , 0 1.
smf " ", .. . smf :
- x - , ;
- params - . - [a b], [a, b] . b<=a, , (a+b)/2.
smf y, x.
.
x = 0: 0.1: 10;
y1 = smf (x, [2 1]);
y2 = smf (x, [2 4]);
y3 = smf (x, [2 7]);
plot (x, [y1; y2; y3])
title (' smf, a=2, b=1,,7')
ylim ([0 1.05])
legend ('b=1', 'b=4', 'b=7')
===================================================================
s- [2 1], [2 4] [2 7].
\ \
|
:
[centers, sigmas] = subclust (X, radii, xBounds, options)
:
. , subclust, , (Ronald Yager) (Dimitar Filev). .
.
: , , n . p- (). , .. , X.
|
|
. . , . , . , - j- . , , , . - . . , . , .. . , . , .
subclust , :
- X , , . ();
- radii , ( radii p). radii [0, 1] , subclust , X . , radii , subclust . , , radii [0.2, 0.5]. radii . radii , ;
- xBounds , , X, . , .. 2 x p. xBounds , subclust X;
- options :
- options(1) (squash factor). options(1)*radii . . , . 1.25;
- options(2) (accept ratio). . , . , subclust. 0.5;
- options(3) (reject ratio). . , . , , . , . , . . 0.15;
- options(4) , . .
subclust :
|
|
- centers . .
- sigmas .
subclust , .
:
data=load('clusterdemo.dat');
centers=subclust(data, 0.3)
plot3(data(:,1), data(:,2), data(:,3), 'b.', 'markersize', 3);
hold on
plot3(centers(:,1), centers(:,2), centers(:,3), 'r*', 'markersize', 8);
grid on
, clusterdemo.dat. .
\ \
|
:
out = sugmax(fis)
:
sugmax , fis. out . , .
:
fis = readfis ('juggler');
out= sugmax (fis)
===================================================================
juggler.
\ \
|
:
y = trapmf (x, params)
:
trapmf . .
:
[a, d] - ;
[b, c] - ;
trapmf , . trapmf :
- x , ;
- params . [a b c d]. .
trapmf y, x.
:
x = 0: 0.1: 10;
y1 = trapmf (x, [0 0 1.5 10]);
y2 = trapmf (x, [0 2 3 10]);
y3 = trapmf (x, [0 4 7 10]);
plot (x, [y1; y2; y3])
title (' trapmf, a=0, d=10')
ylim([0 1.05])
legend (b=0, c=1.5, b=2, c=3, b=4, c=7)
===================================================================
[0 0 1.5 10], [0 2 3 10] [0 4 7 10].
\ \
|
:
y = trimf (x, params)
:
trimf . . .
:
[a, c] ;
b .
trimf :
- x , ;
- params . [a b c]. .
trimf y, x.
|
|
:
x = 0: 0.1: 10;
y1 = trimf (x, [0 0 10]);
y2 = trimf (x, [0 3 10]);
y3 = trimf (x, [0 7 10]);
plot (x, [y1; y2; y3])
title (' trimf, a=0, b=07, c=10')
legend (b=0, b=3, b=7)
===================================================================
[0 0 10], [0 3 10] [0 7 10]. \ \
|
:
writefis (fis, filename, 'dialog')
:
writefis . writefis :
- fis , ;
- filename , ;
- 'dialog' , . filename. , .
writefis . , , .
writefis . . .fis , filename.
:
fis = readfis (tipper);
writefis (fis, tipper_copy)
Tipper tipper_copy.fis.
\ \
| Z- |
:
y = zmf (x, params)
:
zmf Z- . , 1 0. , 0 1.
zmf " ", .. . zmf :
- x - , ;
- params - . - [a b], [a, b] . b<=a, , (a+b)/2.
zmf y, x.
.
x = 0: 0.1: 10;
y1 = zmf (x, [2 1]);
y2 = zmf (x, [2 5]);
y3 = zmf (x, [2 9]);
plot (x, [y1; y2; y3])
title (' zmf, a=2, b=1,,9')
ylim ([0 1.05])
legend ('b=1', 'b=5', 'b=9')
===================================================================
s- [2 1], [2 5] [2 9].
\ \
| Simulink- |
:
fuzblock
:
:
- Fuzzy Logic Controller ;
- Fuzzy Logic Controller with Ruleviewer - RuleViewer Simulink;
- Membership Functions .
Simulink- Fuzzy Logic Controller Fuzzy Logic Controller with Ruleviewer, , . , Simulink- . , , .
, . . Fuzzy Logic Controller Fuzzy Logic Controller with Ruleviewer. , (Membership Functions):
- Diff. Sigmoidal MF ;
- Gaussian MF ;
- Gaussian 2MF ;
- Generalized Bell MF ;
- Pi-shared MF - ;
- Probabilistic OR ;
- Probabilistic Rule Agg ;
- Prod. Sigmoidal MF ;
- S-shaped MF S- ;
- Sigmoidal MF ;
- Trapezoidal MF ;
- Triangular MF ;
- Z-shaped MF Z- .
\ \