PartialLeastSquaresModel Constructor

Definition

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

Overload List

PartialLeastSquaresModel(IDataFrame, String, Int32)

Constructs a new PartialLeastSquaresModel.
C#
public PartialLeastSquaresModel(
	IDataFrame dataFrame,
	string formula,
	int numberOfComponents
)

Parameters

dataFrame  IDataFrame
A IDataFrame containing the data for the regression.
formula  String
A formula that specifies the variables in the model.
numberOfComponents  Int32
The number of components to include in the mdoel.

Exceptions

ArgumentNullExceptiondataFrame is null.
-or-
formula is null.
FormatExceptionThe formula is not in the correct format.
ArgumentOutOfRangeExceptionnumberOfComponents is less than zero.

PartialLeastSquaresModel(Matrix<Double>, Matrix<Double>, Int32)

Constructs a new PartialLeastSquaresModel.
C#
public PartialLeastSquaresModel(
	Matrix<double> dependentData,
	Matrix<double> independentData,
	int numberOfComponents
)

Parameters

dependentData  Matrix<Double>
A matrix that contains the data for the dependent variables.
independentData  Matrix<Double>
A matrix that contains the data for the independent variables.
numberOfComponents  Int32
The number of components to include in the mdoel.

Remarks

Each column of independentData corresponds to an independent variable. Each column of dependentData corresponds to a dependent variable.

Exceptions

ArgumentNullExceptiondependentData is null.
-or-
independentData is null.
ArgumentOutOfRangeExceptionnumberOfComponents is less than zero.

PartialLeastSquaresModel(Vector<Double>, Matrix<Double>, Int32)

Constructs a new PartialLeastSquaresModel.
C#
public PartialLeastSquaresModel(
	Vector<double> dependentData,
	Matrix<double> independentData,
	int numberOfComponents
)

Parameters

dependentData  Vector<Double>
A vector that contains the dependent variable.
independentData  Matrix<Double>
A matrix that contains the data for the independent variables.
numberOfComponents  Int32
The number of components to include in the mdoel.

Remarks

Each column of independentData corresponds to an independent variable.

Exceptions

ArgumentNullExceptiondependentData is null.
-or-
independentData is null.
ArgumentOutOfRangeExceptionnumberOfComponents is less than zero.

PartialLeastSquaresModel(IDataFrame, String[], String[], Int32)

Constructs a new PartialLeastSquaresModel.
C#
public PartialLeastSquaresModel(
	IDataFrame dataFrame,
	string[] dependentVariables,
	string[] independentVariables,
	int numberOfComponents
)

Parameters

dataFrame  IDataFrame
A IDataFrame containing the data for the regression.
dependentVariables  String[]
The name of the dependent variable.
independentVariables  String[]
An array containing the names of the independent variables.
numberOfComponents  Int32
The number of components to include in the mdoel.

Exceptions

ArgumentNullExceptiondataFrame is null.
-or-
dependentVariables is null.
-or-
independentVariables is null.
ArgumentOutOfRangeExceptionnumberOfComponents is less than zero.

See Also