Piecewise Curve.Set XValues Method
Sets the X values at the specified indexes.
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public void SetXValues(
int[] indexes,
double[] newValues
)
Parameters
Remarks
This method allows you to set the X-values of multiple data points at the same time. This is especially useful when setting the values one at a time would cause the X values to no longer be in ascending order. This method still requires that all X values are in ascending order, but this condition is verified based on all the new X values.
Exceptions
Argument | indexes is null. -or- newValues is null. |
Dimension | The length of indexes does not equal the length of newValues. |
Argument | One or more of the indexes is less than zero or
greater than NumberOfIntervals. |