PartialLeastSquaresModel Constructor

Definition

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

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

ArgumentNullException

dataFrame is null.

-or-

formula is null.

FormatException

The formula is not in the correct format.

ArgumentOutOfRangeException

numberOfComponents 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

ArgumentNullException

dependentData is null.

-or-

independentData is null.

ArgumentOutOfRangeException

numberOfComponents 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

ArgumentNullException

dependentData is null.

-or-

independentData is null.

ArgumentOutOfRangeException

numberOfComponents 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

ArgumentNullException

dataFrame is null.

-or-

dependentVariables is null.

-or-

independentVariables is null.

ArgumentOutOfRangeException

numberOfComponents is less than zero.

See Also