PiecewiseCurve.SetYValues Method

Sets the Y values at the specified indexes.

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public void SetYValues(
	int[] indexes,
	double[] newValues
)

Parameters

indexes  Int32[]
An integer array of zero-based indexes.
newValues  Double[]
A Double array.

Remarks

This method allows you to set the Y-values of multiple data points at the same time.

Exceptions

ArgumentOutOfRangeException

One or more of the indexes is less than zero or greater than NumberOfIntervals.

ArgumentNullException

indexes is null
-or-
newValues is null.

DimensionMismatchException

The length of indexes does not equal the length of newValues.

See Also