Click or drag to resize
Accord.NET (logo)

TrapezoidalFunction Constructor (Single, Single, Single, Single, TrapezoidalFunctionEdgeType)

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:  Accord.Fuzzy
Assembly:  Accord.Fuzzy (in Accord.Fuzzy.dll) Version: 3.6.0
Syntax
public TrapezoidalFunction(
	float m1,
	float m2,
	float max,
	float min,
	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.
max
Type: SystemSingle
The maximum value that the membership will reach, [0, 1].
min
Type: SystemSingle
The minimum value that the membership will reach, [0, 1].
edge
Type: Accord.FuzzyTrapezoidalFunctionEdgeType
Trapezoid's TrapezoidalFunctionEdgeType.
See Also