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

Namespace:  AForge.Fuzzy
Assembly:  AForge.Fuzzy (in AForge.Fuzzy.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public TrapezoidalFunction(
	float m1,
	float m2,
	float max,
	float min,
	TrapezoidalFunction..::.EdgeType edge
)

Parameters

m1
Type: System..::.Single
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
Type: System..::.Single
Edge = Left: X value where the degree of membership reaches the maximum. Edge = Right: X value where the degree of membership reaches minimum value.
max
Type: System..::.Single
The maximum value that the membership will reach, [0, 1].
min
Type: System..::.Single
The minimum value that the membership will reach, [0, 1].
edge
Type: AForge.Fuzzy..::.TrapezoidalFunction..::.EdgeType
Trapezoid's TrapezoidalFunction..::.EdgeType.

See Also