Constructs a PLS1 instance with the given PLS1 calculator and
performs a PLS1 calculation on the given data.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public PLS1( IPLS1Calc calculator, DoubleMatrix X, DoubleVector y, int numComponents ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ calculator As IPLS1Calc, _ X As DoubleMatrix, _ y As DoubleVector, _ numComponents As Integer _ ) |
| Visual C++ |
|---|
public: PLS1( IPLS1Calc^ calculator, DoubleMatrix^ X, DoubleVector^ y, int numComponents ) |
Parameters
- calculator
- Type: CenterSpace.NMath.Stats..::.IPLS1Calc
PLS1 calculator object.
- X
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
n samples by p variables predictor matrix.
- y
- Type: CenterSpace.NMath.Core..::.DoubleVector
Response vector.
- numComponents
- Type: System..::.Int32
The number of components of X to use in the PLS calculation.