PolynomialRegressionModel Constructor

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

PolynomialRegressionModel(Vector<Double>, Vector<Double>, Int32)

Constructs a new PolynomialRegressionModel.
C#
public PolynomialRegressionModel(
	Vector<double> dependentVariable,
	Vector<double> independentVariable,
	int degree
)

Parameters

dependentVariable  Vector<Double>
A vector that specifies the dependent variable.
independentVariable  Vector<Double>
A vector that specifies the independent variable.
degree  Int32
The degree of the regression polynomial.

Exceptions

ArgumentNullException

dependentVariable is null.

-or-

independentVariable is null.

PolynomialRegressionModel(IDataFrame, String, String, Int32)

Constructs a new PolynomialRegressionModel.
C#
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.

See Also