O'Reilly logo

Hands-On Machine Learning with C# by Matt R. Cole

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Fuzzy logic

Our application will have two simple buttons, one for running the fuzzy set test and the other for running the linguistic variable test. Here is a quick snapshot of what our example application will look like:

The code to create this sample is relatively small and simple. Here is what it looks like when we click on the Run Fuzzy Set Test button. We will create two fuzzy sets (one for Cool and one for Warm), add some membership data values for each, and then plot them:

TrapezoidalFunction function1 = new TrapezoidalFunction( 13, 18, 23, 28 );             FuzzySet fsCool = new FuzzySet( "Cool", function1 ); TrapezoidalFunction function2 = new ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required