Piecewise Curve.Set Data Point Method
Sets the X value of the data point with the specified index.
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public void SetDataPoint(
int index,
Point newValue
)
Parameters
Remarks
This method lets you set both the X-value and the Y-value of a data point at the same time. The new X-value must be such that the X values remain in ascending order. Otherwise, an ArgumentException is thrown.
Exceptions
Argument | index is less than zero or greater than NumberOfIntervals. |
Argument | Setting the value to would cause the X values to no longer be in ascending order. |