Click or drag to resize

ColumnMathToEnumerableOfDouble(ValueTupleDataColumn, DataColumn, Boolean) Method

Converts a pair of data columns to an enumeration of pairs of Doubles.

Namespace: Altaxo.Data
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static IEnumerable<(double X, double Y)> ToEnumerableOfDouble(
	this (DataColumn xCol, DataColumn yCol) columnTuple,
	bool filterInvalidPairs
)

Parameters

columnTuple  ValueTupleDataColumn, DataColumn
The two columns to convert.
filterInvalidPairs  Boolean
If set to true, only pairs will yielded, for which both values are valid.

Return Value

IEnumerableValueTupleDouble, Double
Enumeration of pairs of Doubles.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ValueTupleDataColumn, DataColumn. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Example
C#
var e = (col["A"], col["B"]).ToEnumerableOfDouble(true);
See Also