| LinearRegressionSetRegressionData(DoubleMatrix, DoubleVector, Boolean) Method |
Sets the regression matrix, observation vector, and intercept option to the
specified values, and recalculates the model parameters.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public void SetRegressionData(
DoubleMatrix A,
DoubleVector obs,
bool addIntercept
)
Public Sub SetRegressionData (
A As DoubleMatrix,
obs As DoubleVector,
addIntercept As Boolean
)
public:
void SetRegressionData(
DoubleMatrix^ A,
DoubleVector^ obs,
bool addIntercept
)
member SetRegressionData :
A : DoubleMatrix *
obs : DoubleVector *
addIntercept : bool -> unit
Parameters
- A DoubleMatrix
- A regression matrix.
- obs DoubleVector
- A vector of observations.
- addIntercept Boolean
- Intercept option. Set to true if you want
the model to contain an intercept parameter that is not accounted for in the
input regression matrix (in the form of a leading column of ones).
Exceptions Exception | Condition |
---|
MismatchedSizeException | Thrown if the number of rows in the
regression matrix is not equal to the length of the observation vector. |
See Also