Partial Least Squares Model Constructor
Definition
Namespace: Extreme.Statistics.Multivariate
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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
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.
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
ArgumentNullException | dependentData is null.
-or- independentData is null. |
ArgumentOutOfRangeException | 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
ArgumentNullException | dependentData is null.
-or- independentData is null. |
ArgumentOutOfRangeException | 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
ArgumentNullException | dataFrame is null.
-or- dependentVariables is null. -or- independentVariables is null. |
ArgumentOutOfRangeException | numberOfComponents is less than zero. |