Click or drag to resize
Accord.NET (logo)

TrapezoidalFunction Constructor (Single, Single, Single, Single)

Initializes a new instance of the TrapezoidalFunction class. With four points the shape is known as flat fuzzy number or fuzzy interval (/--\).

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

Parameters

m1
Type: SystemSingle
X value where the degree of membership starts to raise.
m2
Type: SystemSingle
X value where the degree of membership reaches the maximum value.
m3
Type: SystemSingle
X value where the degree of membership starts to fall.
m4
Type: SystemSingle
X value where the degree of membership reaches the minimum value.
Remarks

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

See Also