( 2 9), c-means :
- Expo - ;
- Iterat - ;
- Improv - .
\ \
|
fuzdemos (. 9.48), - Fuzzy Logic Toolbox:
- ANFIS: Noise cancellation ANFIS;
- ANFIS: Time-series prediction - (Mackey-Glass) ANFIS;
- ANFIS: Gas mileliage prediction - ANFIS ( ) ;
- Fuzzy c-means clustering c-means ;
- Subtractive clustering ;
- Ball juggler ;
- I nverse kinematics -;
- Defuzzification ;
- Membership function gallery ;
- Water Tank (sim) ( Simulink);
- Water Tank with Rule View (sim) ( Simulink);
- Cart and pole (sim) ( Simulink);
- Cart and two poles (sim) ( Simulink);
- Ball and beam (sim) ;
- Backing truck (sim) - ( Simulink).
- , , Run this demo. Close fuzdemos.
\ \
| ANFIS |
gasdemo, ANFIS . (MPG - miles per gallon) , . gasdemo 10 . (. .9.6):
- Next>> - ( Start>> );
- Prev<< - ;
- Reset - ;
- AutoPlay - ;
- Info - ;
- Close .
(. 9.6) gasdemo. Start>>.
|
|
9.6 - gasdemo
. , : , , , , . auto-gas.dat, . - (http://www.ics.edu/~mlearn/MLRepository.html). , . , ( ) ( ).
exhsrch. -. (. 9.7), -. : Weight ; Disp ; Power ; Cylinder ; Year ; Acceler ; () () . , , . exhsrch(1, trn_data, chk_data, input_name);. MatLab. , . , . , , . , ANFIS- .
9.7
. , 15- . input_index = exhsrch(2, trn_data, chk_data, input_name);. , , . , .
. , 20- . , : , . , , . , . , .
|
|
- (. 9.8) ANFIS-, .. , . , - , , . ANFIS- RMSE (Root Mean Squared Error ) 2.766 2.995, . , , , RMSE 3.452 3.444 , .
9.8
. - exhsrch ANFIS-. , . , , . ANFIS- ( ) ( ) . 45- (. . 9.9). . , 50- , , .. .
9.9
- (.9.10) . , . - . .
9.10
(. . 9.10) ( ) ( ) . , . ANFIS-. , , ANFIS (, , ) , , .
|
|
9.11
|
invkine, -. - - . , - . . . , .
invkine , . 9.49. , . . , , . , - . , . , .
Start Animation, . Show Trails. Clear Trails. :
Stop - ;
Pause .
Pause :
Continue - ;
Step - .
9.49 - invkine |
, . ( ), - ( ). , . . . "-" - . 9.50. , . . 229 "-", . 9.49 . , . , , .
9.50 - "-" - |
\ \
|
|
| c-means |
:
irisfcm, c-means .
. 1936 . , , , .. . : 1 - Iris Setosa, 2 - Iris Versicolor; 3 - Iris Virginica. , : x1 - ; x2 - ; x3 - ; x4 - . iris.dat. 150 , . - , .
. 1 2D- . Iris Setosa , Iris Versicolor - Iris Virginica . Iris Setosa , . Iris Versicolor Iris Virginica .
, .. . - irisfcm c-means , fcm. c-means :
- 2.0;
- 3;
- 100;
- 0.000001.
- irisfcm :
- . 1, 2 3 2D- . . 1 , -means . , 1 Iris Virginica, 2 - Iris Setosa, 3 - Iris Versicolor;
- (. 2);
- .
1.
2.
|
juggler, . , . . , .
juggler , . 9.19. , . , . , .
Start Animation, . Show Trails. Clear Trails. . Controller:, : Fuzzy Human -.
9.19 Juggler
. theta - : xHit projectAngle . . . . 9.20 RuleViewer, juggler.
|
|
9.20 RuleViewer
(. . 9.21) . .
9.21 -
:
Stop ;
Pause - .
Pause :
Continue ;
Step .
( ) 200 . .
|
noisedm, ANFIS . noisedm 10 .
noisedm. Start>>.
x 6 (. 9.12). :
time = (0:0.01:6);
x = sin(40./(time+0.01));
9.12
, x n2. n2 - n1 (. 9.13), : n1 = randn(size(time));.
9.13
(. 9.14), n1 n2. : n2(k) = 4*sin(n1(k))*n1(k-1)/(1+n1(k-1)^2).
9.14
(. 9.15). , n1 n2 , . 9.15. , n1 n2 .
9.15
m (. 9.16), x n2. m x. , n2. m n1.
9.16
, n1 n2 ANFIS. n2 , m n2. , x . , ( 2), ANFIS- .
ANFIS-. . , . 24 12 12 . 0.2. 10 . MatLab.
. . 9.17 , . evalfis . , n2 .
9.17
. (estimated_x) x (estimated_n2). x estimated_x (. 9.18). , m (. . 9.15).
9.18
|
slbb, . , , . . slbb Simulink.
slbb Simulink. - (. 9. 22), slbb.
9.22 -
Start Simulation. (. 9.23), . , , . , . , . . Show Trails. Clear Trails. : Stop Pause - . Pause : Continue Step . Target Position: , :
Sinosoid Wave ;
Square Wave ();
Saw Wave ;
Mouse-Driven .
, , , .
9.23 slbb
. . . 16 . - Fuzzy Logic Controller (. . 9.22) Look under mask. Link: slbb/Fuzzy Logic Controller FIS Wizard Look under mask.
slbb Scope, , , . . 9.24. , , - .
9.24
) ;
) ;
) ;
)
|
slcp, . , . . , , . . : , , , . slcp , . slcp Simulink.
slcp Simulink. - (. 9. 25), slcp.
9.25 -
Start Simulation. (. 9.26), . , , . , . . Show Trails. Clear Trails. : Stop Pause - . Pause : Continue Step . Target Position: , :
Sinosoid Wave ;
Square Wave ();
Saw Wave ;
Randow Wave ;
Mouse-Driven .
, , , , .
9.26 slcp
. : , , . . 16 . - Fuzzy Logic Controller (. . 9.25) Look under mask. Link: slcp/Fuzzy Logic Controller FIS Wizard Look under mask.
slcp Scope, . . 9.27. , - . Scope - ( . 9.25 ).
9.27
) ;
) ;
) ;
)
\ \
|
sltank sltankrule, . sltank sltankrule , ViewRuler.
, . , . , . sltank sltankrule Simulink.
sltankrule Simulink. - (. 9. 28), sltankrule.
9.28 -
Start Simulation. ( Tank Demo . 9.29), . . . . ( . 9.29). . : . Scope1 (. 9.29) , . change scope . Scope1 change scope - . (Scope4) (Scope2). . 9.30.
9.29
9.30 () ()
5 . level ( ) , rate ( ) valve ( ) . - (. 9.31) Fuzzy Logic Controller (. . 9.28) Look under mask. Link: sltankrule/Fuzzy Logic Controller with Ruleviewer* Fuzzy Logic Controller Look under mask. Link: sltankrule/Fuzzy Logic Controller with Ruleviewer/Fuzzy Logic Controller* FIS Wizard Look under mask.
9.31 -
\ \
|
sltank sltankrule, . sltank sltankrule , ViewRuler.
, . , . , . sltank sltankrule Simulink.
sltankrule Simulink. - (. 9. 28), sltankrule.
9.28 -
Start Simulation. ( Tank Demo . 9.29), . . . . ( . 9.29). . : . Scope1 (. 9.29) , . change scope . Scope1 change scope - . (Scope4) (Scope2). . 9.30.
9.29
9.30 () ()
5 . level ( ) , rate ( ) valve ( ) . - (. 9.31) Fuzzy Logic Controller (. . 9.28) Look under mask. Link: sltankrule/Fuzzy Logic Controller with Ruleviewer* Fuzzy Logic Controller Look under mask. Link: sltankrule/Fuzzy Logic Controller with Ruleviewer/Fuzzy Logic Controller* FIS Wizard Look under mask.
9.31 -
|
sltbu, . , . . sltbu Simulink.
sltbu Simulink. - (. 9. 32), sltbu.
9.32 -
Start Simulation. (. 9.33), . , ϔ, . . . Start Simulation. Show Trails. Clear Trails. : Stop Pause - . Pause : Continue Step . Controller:, : Fuzzy Human -.
9.33 sltbu
. control - : distance , control1 control2 . : If distance is near then control=control1 If distance is far then control=control2. control1 (control2), .. , () . : control1 control2. near () far () z- s- , . control1 control2 . - (. 9.34) Fuzzy Logic Controller (. . 9.32) Look under mask. Link: sltbu/Fuzzy Logic Controller FIS Wizard Look under mask. . 9.35. .
9.34 -
9.35
, . 9.35. .
9.36
|
mgtsdemo, ANFIS -. mgtsdemo 9 .
mgtsdemo. Start>>.
-, . 9.37. :
dx(t)/dt = 0.2x(t-tau)/(1+x(t-tau)^10) - 0.1x(t).
x(0) = 1.2 tau = 17 , . . 9.37 , x(t) = 0 t < 0.
9.37 - - |
, ANFIS- , 6 x(t+6) : x(t-18), x(t-12), x(t-6) x(t). , : [x(t-18) x(t-12) x(t-6) x(t) x(t+6)]. t = 118 1117 1000 . 500 , - . [118, 1117] , , .
genfis1 . trn_dat :
fismat = genfis1(trn_data)
, (. 9.38) .
9.38 - |
, 2^4 = 16 . 104: 24 80 . , 500 "-". :
[trn_fismat,trn_error] = anfis(trn_data, fismat,[],[],chk_data)
4 SUN SPARC II workstation. - - .
(. 9.39), 10 . (. . 9.38). , . , .
9.39 - |
- . . 9.40 , . , . ANFIS-, . , , .
9.40 - |
- , . , . .
9.41 - |
(. 9.42). , 100 , . , 10 . , .
9.42 - | ||
| ||
trips, . trips 6 .
trips. Start>>.
, :
- ;
- ;
- ;
- ;
- .
. . 9.44.
, genfis2, , . . . (. 9.43).
9.43 - |
, 75 " ". . 9.44. , - . , .
9.44 - |
(. 9.45). . , - . .
9.45 - " - " |
. 25- "-", . , " - " . 9.46. , . , ANFIS - "" , .
9.46 - " - " | ||
| ||
shower, . , . shower Simulink.
shower Simulink. - (. 9. 47), shower.
9.47 - - " " |
Start Simulation. temp scope flow scope , . . 9.48 . , . " " :
- - 10 ;
- - 30 ;
- - 0.3 /c;
- - 0.21432 /c.
9.48 - |
.