Initializes a new instance of the PiecewiseLinearFunction class.
Namespace:
AForge.FuzzyAssembly: 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
| Exception | Condition |
|---|---|
| System..::.ArgumentException | Points must be in crescent order on X axis. |
| System..::.ArgumentException | Y value of points must be in the range of [0, 1]. |