Sets the X values at the specified indexes.
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub SetXValues ( _ indexes As Integer(), _ newValues As Double() _ ) |
| C# |
|---|
public void SetXValues ( int[] indexes, double[] newValues ) |
| C++ |
|---|
public: void SetXValues ( array<int>^ indexes, array<double>^ newValues ) |
Parameters
- indexes ()
- An integer array of zero-based indexes.
- newValues ()
- A Double array.
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
| Exception | Condition |
|---|---|
| ArgumentNullException | indexes is nullNothingnullptr.
-or- newValues is nullNothingnullptr. |
| DimensionMismatchException | The length of indexes does not equal the length of newValues. |
| ArgumentException | One or more of the indexes is less than zero or greater than NumberOfIntervals. -or- Setting the value to would cause the X values to no longer be in ascending order. |