Пример #1
0
 private float calculateValue(float max, float x, float a, float b, float c)
 {
     if (Fuzzy.Triangle(x, a, b, c).X > max)
     {
         return(max);
     }
     return(Fuzzy.Triangle(x, a, b, c).X);
 }
Пример #2
0
 Fuzzy stuff_bad(float staff)
 {
     //return Fuzzy.Gaussian(staff, 1.5f, 0f);
     return(Fuzzy.Triangle(staff, -0.01f, 0f, 5f));
 }
Пример #3
0
 Fuzzy stuff_awesome(float staff)
 {
     //return Fuzzy.Gaussian(staff, 1.5f, 10f);
     return(Fuzzy.Triangle(staff, 5f, 10f, 10.1f));
 }
Пример #4
0
 Fuzzy stuff_good(float staff)
 {
     //return Fuzzy.Gaussian(staff, 1.5f, 5f);
     return(Fuzzy.Triangle(staff, 1f, 5f, 9f));
 }