.


:




:

































 

 

 

 


4




\ \

RMVAR

:

fis2 = rmvar (fis, varType, varIndex)
[fis2, errorStr] = rmvar (fis, varType, varIndex)

:

. rmmf 3 :

  1. fis ;
  2. varType . : input' ; output' ;
  3. varIndex . .

rmmf , . , . .

rmmf 2 :

  1. fis2 varIndex;
  2. errorStr , .

:

a=readfis(tipper);
b=rmvar(a, input, 1)

service Tipper.

\ \

SETFIS

:

fis2 = setfis (fis, fisprop, propvalue)
fis2 = setfis (fis, vartype, varindex, varprop, propvalue)
fis2 = setfis (fis, vartype, varindex, mf, mfindex, mfprop, propvalue)

:

. setfis , :

  1. fis ;
  2. fisprop , . :

AggMethod ;
AndMethod ;
DefuzzMethod ;
ImpMethod ;
InLabels ;
InMfParams ;
Name ;
OrMethod ;
OutLabels ;
OutMfParams ;
Type ( );
RuleList ;

  1. propvalue ;
  2. vartype , . : input ; output ;
  3. varindex , ;
  4. varprop , . :

Name ;
Range ;
NumMfs ;

  1. mf- ;
  2. mfindex -, ;
  3. mfprop , . :

Name ();
'Type' ;
'Params' .

:

fis = readfis (tipper);
fis = setfis (fis, DefuzzMethod, mom)

Tipper.

.

setfis fis2 .

\ \

SHOWFIS

:

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.

\ \

SHOWRULE

:

outStr = showrule (fis, ruleIndex, ruleFormat, lang)

:

showrule outStr, fis. , . showrule :

  1. fis , ;
  2. ruleIndex . . , ;
  3. ruleFormat . :

verbose ;
symbolic ;
indexed .
verbose;

  1. lang - verbose. :

'english' ;
'francais' ;
'deutsch' .
.

:

fis = readfis (tipper);
showfis (fis)

Tipper.

\ \

SIGMF

:

y = sigmf (x, params)

:

, :

a ;
.

sigmf . sigmf :

  1. x , ;
  2. 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].

\ \

SMF
S-

:

y = smf (x)

:

smf S- . , 0 1. , 0 1.

smf " ", .. . smf :

  1. x - , ;
  2. 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].

\ \

SUBCLUST

:

[centers, sigmas] = subclust (X, radii, xBounds, options)

:

. , subclust, , (Ronald Yager) (Dimitar Filev). .

.

: , , n . p- (). , .. , X.

. . , . , . , - j- . , , , . - . . , . , .. . , . , .

subclust , :

  1. X , , . ();
  2. radii , ( radii p). radii [0, 1] , subclust , X . , radii , subclust . , , radii [0.2, 0.5]. radii . radii , ;
  3. xBounds , , X, . , .. 2 x p. xBounds , subclust X;
  4. 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 :

  1. centers . .
  2. 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. .

\ \

SUGMAX

:

out = sugmax(fis)

:

sugmax , fis. out . , .

:

fis = readfis ('juggler');

out= sugmax (fis)

===================================================================

juggler.

\ \

TRAPMF

:

y = trapmf (x, params)

:

trapmf . .

:

[a, d] - ;
[b, c] - ;

trapmf , . trapmf :

  1. x , ;
  2. 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].

\ \

TRIMF

:

y = trimf (x, params)

:

trimf . . .

:

[a, c] ;
b .

trimf :

  1. x , ;
  2. 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

:

writefis (fis, filename, 'dialog')

:

writefis . writefis :

  1. fis , ;
  2. filename , ;
  3. 'dialog' , . filename. , .

writefis . , , .

writefis . . .fis , filename.

:

fis = readfis (tipper);
writefis (fis, tipper_copy)

Tipper tipper_copy.fis.

\ \

ZMF
Z-

:

y = zmf (x, params)

:

zmf Z- . , 1 0. , 0 1.

zmf " ", .. . zmf :

  1. x - , ;
  2. 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].

\ \

FUZBLOCK
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- .

\ \





:


: 2015-11-23; !; : 466 |


:

:

, .
==> ...

1672 - | 1537 -


© 2015-2024 lektsii.org - -

: 0.079 .