Calculates a partial least squares from the given data and number of
components.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public override void Calculate( DoubleMatrix X, DoubleVector y, int numComponents ) |
| Visual Basic (Declaration) |
|---|
Public Overrides Sub Calculate ( _ X As DoubleMatrix, _ y As DoubleVector, _ numComponents As Integer _ ) |
| Visual C++ |
|---|
public: virtual void Calculate( DoubleMatrix^ X, DoubleVector^ y, int numComponents ) override |
Parameters
- X
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
Predictor data. Matrix is number of samples by number of predictor variables.
- y
- Type: CenterSpace.NMath.Core..::.DoubleVector
Response data. Length of the vector is the number of samples. This length must match the number of rows in the predictor matrix.
- numComponents
- Type: System..::.Int32
Number of components.