Click or drag to resize

LinearRegression(DataFrame, IDFColumn, IRegressionCalculation) Constructor

Constructs a LinearRegression instance with the specifed regresssion data and observation column. Model parameter values are computed using the specified regression calculator.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public LinearRegression(
	DataFrame data,
	IDFColumn observations,
	IRegressionCalculation regressionCalculator
)

Parameters

data  DataFrame
Regression data.
observations  IDFColumn
Column of observations.
regressionCalculator  IRegressionCalculation
A regression calculation object. Must implement the IRegressionCalculation interface.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the number of rows in the regression matrix is not equal to the length of the observation vector.
See Also