Assembly: AForge.Fuzzy (in AForge.Fuzzy.dll) Version: 22.214.171.124 (126.96.36.199)
public class TrapezoidalFunction : PiecewiseLinearFunction
Since the PiecewiseLinearFunction can represent any piece wise linear function, it can represent trapezoids too. But as trapezoids are largely used in the creation of Linguistic Variables, this class simplifies the creation of them.
// creating a typical triangular fuzzy set /\ TrapezoidalFunction function1 = new TrapezoidalFunction( 10, 20, 30 ); // creating a right fuzzy set, the rigth side of the set is fuzzy but the left is opened TrapezoidalFunction function2 = new TrapezoidalFunction( 10, 20, 30, TrapezoidalFunction.EdgeType.Right );