| LinearRegression(DataFrame, Int32, Boolean) Constructor |
Constructs a LinearRegression instance with the specifed regresssion data
and an index to the observation column, optionally adding an intercept
parameter. By default, the model parameter values are computed using a
QR factorization.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public LinearRegression(
DataFrame data,
int observationIndex,
bool addIntercept
)
Public Sub New (
data As DataFrame,
observationIndex As Integer,
addIntercept As Boolean
)
public:
LinearRegression(
DataFrame^ data,
int observationIndex,
bool addIntercept
)
new :
data : DataFrame *
observationIndex : int *
addIntercept : bool -> LinearRegression
Parameters
- data DataFrame
- Regression data.
- observationIndex Int32
- Index to column of observations.
- addIntercept Boolean
- If true, a column of ones is prepended onto
the data in the regression data data, thus adding an intercept to
the model. If false, the data in the regression data is used as given.
See Also