Click or drag to resize
Accord.NET (logo)

TrapezoidalFunction Constructor (Single, Single, TrapezoidalFunctionEdgeType)

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 (--\).

Namespace:  Accord.Fuzzy
Assembly:  Accord.Fuzzy (in Accord.Fuzzy.dll) Version: 3.8.0
Syntax
public TrapezoidalFunction(
	float m1,
	float m2,
	TrapezoidalFunctionEdgeType edge
)
Request Example View Source

Parameters

m1
Type: SystemSingle
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: SystemSingle
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
Type: Accord.FuzzyTrapezoidalFunctionEdgeType
Trapezoid's TrapezoidalFunctionEdgeType.
Remarks

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

See Also