Initializes a new instance of the PiecewiseLinearFunction class.

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

Syntax

C#
public PiecewiseLinearFunction(
	Point[] points
)

Parameters

points
Type: array< AForge..::.Point >[]()[]
Array of (X,Y) coordinates of each start/end of the lines.

Remarks

Specified point must be in crescent order on X axis and their Y value must be in the range of [0, 1].

Exceptions

ExceptionCondition
System..::.ArgumentExceptionPoints must be in crescent order on X axis.
System..::.ArgumentExceptionY value of points must be in the range of [0, 1].

See Also