Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Consequent instance when parsing FCL file #4

Open
arruda opened this issue Jun 5, 2017 · 1 comment
Open

Create Consequent instance when parsing FCL file #4

arruda opened this issue Jun 5, 2017 · 1 comment

Comments

@arruda
Copy link
Owner

arruda commented Jun 5, 2017

Here's an example of the FCL parts related to this:

VAR_OUTPUT
    some_var : REAL;
END_VAR

DEFUZZIFY some_var
    TERM mf1 := (0,0) (5,1) (10,0);
    TERM mf2 := (10,0) (15,1) (20,0);
    TERM mf3 := (20,0) (25,1) (30,0);
    METHOD : COG;
    DEFAULT := 0;
    RANGE := (0..30)
END_DEFUZZIFY

It seems it should be treated like the Antecedents are (considering the MFs and universe).

But one should pay attention on how should translate the METHOD, DEFAULT and RANGE to scikit-fuzzy.

@arruda
Copy link
Owner Author

arruda commented Jun 5, 2017

About this RANGE:

The range is a specification of a minimum value and a maximum value separated by two points.
RANGE := (minimum value .. maximum value);
The range is used for the specification of minimum and maximum values of an output variable. This is
not applicable if singletons are used for output membership functions. In other cases, the RANGE is
used for limiting each membership function to the range of each output variable and should be
defined to avoid unpredictable output values.
If there is no range defined the default range shall be the range of the data type of the variable
specified in Part 3.

So if this range is present then should ignore the range defined in the var_output if it's present there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant