DataTableWrapperToROColumnMatrixWithIntercept Method |
Wraps a set of
DataColumns into a readonly matrix so that the matrix columns corresponds to the
DataColumns But the first column consists of elements with a numerical value of 1. The number of columns
of the resulting matrix is therefore 1 greater than the number of data columns in the argument.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IROMatrix<double> ToROColumnMatrixWithIntercept(
DataColumnCollection collection,
IAscendingIntegerCollection selectedColumns,
IAscendingIntegerCollection selectedRows
)
Parameters
- collection DataColumnCollection
- Collection of DataColumns.
- selectedColumns IAscendingIntegerCollection
- Set set of indices into the collection that are part of the matrix. You can subsequently change this parameter without affecting this wrapper.
- selectedRows IAscendingIntegerCollection
- The set of rows that are part of the matrix. This collection will be cloned here, i.e. you can subsequently change it without affecting this wrapper.
Return Value
IROMatrixDoubleThe wrapping read only matrix.
Remarks This type of wrapper is usefull for instance for fitting purposes, where an intercept is needed.
See Also