Performs cross validation on the given data using the given PLS1 calculator and number of components.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public void DoCrossValidationPls1(
	DoubleMatrix X,
	DoubleVector y,
	IPLS1Calc calculator,
	int numComponents
)
Visual Basic (Declaration)
Public Sub DoCrossValidationPls1 ( _
	X As DoubleMatrix, _
	y As DoubleVector, _
	calculator As IPLS1Calc, _
	numComponents As Integer _
)
Visual C++
public:
void DoCrossValidationPls1(
	DoubleMatrix^ X, 
	DoubleVector^ y, 
	IPLS1Calc^ calculator, 
	int numComponents
)

Parameters

X
Type: CenterSpace.NMath.Core..::.DoubleMatrix
Predictor data. Matrix is number of samples rows by number of independent variables columns.
y
Type: CenterSpace.NMath.Core..::.DoubleVector
Response data. Vector contains number of samples elements.
calculator
Type: CenterSpace.NMath.Stats..::.IPLS1Calc
Instance of a class implementing the IPLS1Calc interface. Used to perform the PLS1 calculations during cross validation.
numComponents
Type: System..::.Int32
Implementation of the ICrossValidationSubsets interface that will be used to generate the training and testing subsets.

See Also