PolynomialRegressionModel Constructor

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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

ArgumentNullExceptiondependentVariable 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