Partial Least Squares Model Constructor
Definition
Namespace: Numerics.NET.Statistics.Multivariate
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
PartialLeastSquaresModel(IDataFrame, String, Int32)
Constructs a new PartialLeastSquaresModel.
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
Argument | dataFrame is null. -or- formula is null. |
Format | The formula is not in the correct format. |
Argument | numberOfComponents is less than zero. |
PartialLeastSquaresModel(Matrix<Double>, Matrix<Double>, Int32)
Constructs a new PartialLeastSquaresModel.
public PartialLeastSquaresModel(
Matrix<double> dependentData,
Matrix<double> independentData,
int numberOfComponents
)
Parameters
Remarks
Each column of independentData corresponds to an independent variable. Each column of dependentData corresponds to a dependent variable.
Exceptions
Argument | dependentData is null. -or- independentData is null. |
Argument | numberOfComponents is less than zero. |
PartialLeastSquaresModel(Vector<Double>, Matrix<Double>, Int32)
Constructs a new PartialLeastSquaresModel.
public PartialLeastSquaresModel(
Vector<double> dependentData,
Matrix<double> independentData,
int numberOfComponents
)
Parameters
Remarks
Each column of independentData corresponds to an independent variable.
Exceptions
Argument | dependentData is null. -or- independentData is null. |
Argument | numberOfComponents is less than zero. |
PartialLeastSquaresModel(IDataFrame, String[], String[], Int32)
Constructs a new PartialLeastSquaresModel.
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
Argument | dataFrame is null. -or- dependentVariables is null. -or- independentVariables is null. |
Argument | numberOfComponents is less than zero. |