Constructs a PLS2 instance with the given calculator and performs a
PLS2 calculation on the given data.
///
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public PLS2( IPLS2Calc calculator, DoubleMatrix X, DoubleMatrix Y, int numComponents ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ calculator As IPLS2Calc, _ X As DoubleMatrix, _ Y As DoubleMatrix, _ numComponents As Integer _ ) |
| Visual C++ |
|---|
public: PLS2( IPLS2Calc^ calculator, DoubleMatrix^ X, DoubleMatrix^ Y, int numComponents ) |
Parameters
- calculator
- Type: CenterSpace.NMath.Stats..::.IPLS2Calc
A calculator.
- X
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
n samples by p variables predictor matrix.
- Y
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
n samples by m variables response matrix.
- numComponents
- Type: System..::.Int32
The number of components of PredictorMatrix.