Accord.Fuzzy.TrapezoidalFunction.TrapezoidalFunction C# (CSharp) Method

TrapezoidalFunction() public method

Initializes a new instance of the TrapezoidalFunction class. With three points and an edge this shape can be a left fuzzy number (/--) or a right fuzzy number (--\).

Maximum membership value is set to 1.0 and the minimum is set to 0.0.

public TrapezoidalFunction ( float m1, float m2, EdgeType edge ) : System
m1 float Edge = Left: X value where the degree of membership starts to raise. /// Edge = Right: X value where the function starts, with maximum degree of membership.
m2 float Edge = Left: X value where the degree of membership reaches the maximum. /// Edge = Right: X value where the degree of membership reaches minimum value.
edge EdgeType Trapezoid's .
return System
        public TrapezoidalFunction( float m1, float m2, EdgeType edge )
            : this( m1, m2, 1.0f, 0.0f, edge )
        {
        }
    }

Same methods

TrapezoidalFunction::TrapezoidalFunction ( float m1, float m2, float m3 ) : System
TrapezoidalFunction::TrapezoidalFunction ( float m1, float m2, float m3, float m4 ) : System
TrapezoidalFunction::TrapezoidalFunction ( float m1, float m2, float max, float min, EdgeType edge ) : System
TrapezoidalFunction::TrapezoidalFunction ( float m1, float m2, float m3, float max, float min ) : System
TrapezoidalFunction::TrapezoidalFunction ( float m1, float m2, float m3, float m4, float max, float min ) : System
TrapezoidalFunction::TrapezoidalFunction ( int size ) : System
TrapezoidalFunction