mirror of
https://github.com/marcin-szczepanski/jFuzzyLogic.git
synced 2024-12-18 16:35:27 +01:00
23 lines
366 B
Plaintext
23 lines
366 B
Plaintext
/*
|
|
Example: Different membership functions
|
|
|
|
Pablo Cingolani
|
|
pcingola@users.sourceforge.net
|
|
*/
|
|
|
|
FUNCTION_BLOCK testVariables
|
|
|
|
VAR_INPUT // Define input variables
|
|
inVar : REAL;
|
|
END_VAR
|
|
|
|
// Pairwise linear
|
|
FUZZIFY inVar
|
|
TERM poor := DSIGM 1 1 1 3;
|
|
TERM good := DSIGM 9 4 9 6;
|
|
TERM excellent := DSIGM 1 8 5 9;
|
|
END_FUZZIFY
|
|
|
|
END_FUNCTION_BLOCK
|
|
|