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); }
Fuzzy stuff_bad(float staff) { //return Fuzzy.Gaussian(staff, 1.5f, 0f); return(Fuzzy.Triangle(staff, -0.01f, 0f, 5f)); }
Fuzzy stuff_awesome(float staff) { //return Fuzzy.Gaussian(staff, 1.5f, 10f); return(Fuzzy.Triangle(staff, 5f, 10f, 10.1f)); }
Fuzzy stuff_good(float staff) { //return Fuzzy.Gaussian(staff, 1.5f, 5f); return(Fuzzy.Triangle(staff, 1f, 5f, 9f)); }