Performs cross validation on the given data using the existing PLS1 calculator and subset generator.

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

Syntax

C#
public void DoCrossValidation(
	DoubleMatrix X,
	DoubleVector y,
	int numComponents
)
Visual Basic (Declaration)
Public Sub DoCrossValidation ( _
	X As DoubleMatrix, _
	y As DoubleVector, _
	numComponents As Integer _
)
Visual C++
public:
void DoCrossValidation(
	DoubleMatrix^ X, 
	DoubleVector^ y, 
	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 is number of samples in length.
numComponents
Type: System..::.Int32
Number of components (a.k.a. latent vectors) to use in the PLS1 calculation.

See Also