IXYTable Interface

Table of corresponding x and y values.

If using one of the YFromX methods, the x values must be monotonic, and similar if using the XFromY, the y values must be monotonic.

NOTE: When this is used for a qh-relation, h is stored on x

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public interface IXYTable

Properties

Count Number of elements in table
Item Indexer for getting/setting x or y values
MaximumX Maximum x value
MaximumY Maximum y value
MaximumYIndex Index of maximum y value
MinimumX Minimum x value
XAtMaximumY Value of x at maximum y
XValues Get x values
YValues Get y values

Methods

Resize Resize table. Copy over data to new table
Set Set a value to the table
Validate Validates the data. The only constraint is that the x values after sorting must be monotonically increasing.
XFromY(Double) Interpolates/extrapolates width using linear interpolation

Assuming that the y-values are monotonic.

XFromY(Double, ExtrapolationTypes) Interpolates/extrapolates width using linear interpolation

Assuming that the y-values are monotonic.

YFromX(Double) Interpolates/extrapolates width using linear interpolation
YFromX(Double, ExtrapolationTypes) Interpolates/extrapolates width using linear interpolation

Extension Methods

Set Set a value to the table
(Defined by GenericExtensions)
Sort Sort table by x-value, using a quick-sort algorithm
(Defined by GenericExtensions)
SortStable Sort table by x-value, using a stable sort
(Defined by GenericExtensions)

See Also