asXYData

fun <T> ColumnarData<T>.asXYData(xSymbol: Symbol, ySymbol: Symbol): XYColumnarData<T, T, T>

Represent a ColumnarData as an XYColumnarData. The presence or respective columns is checked on creation.


fun <T> Structure2D<T>.asXYData(xIndex: Int = 0, yIndex: Int = 1): XYColumnarData<T, T, T>

A zero-copy method to represent a Structure2D as a two-column x-y data. There could more than two columns in the structure.