Polynomial Regression Model Constructor
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
PolynomialRegressionModel(Vector<Double>, Vector<Double>, Int32)
Constructs a new PolynomialRegressionModel.
public PolynomialRegressionModel(
Vector<double> dependentVariable,
Vector<double> independentVariable,
int degree
)
Parameters
Exceptions
Argument | dependentVariable is null. -or- independentVariable is null. |
PolynomialRegressionModel(IDataFrame, String, String, Int32)
Constructs a new PolynomialRegressionModel.
public PolynomialRegressionModel(
IDataFrame dataFrame,
string dependentVariableName,
string independentVariableName,
int degree
)
Parameters
- dataFrame IDataFrame
- A IDataFrame containing the data for the regression.
- dependentVariableName String
- The name of the dependent variable.
- independentVariableName String
- An array containing the names of the independent variable.
- degree Int32
- The degree of the regression polynomial.