Calculates the Q residuals for in sample in the model. The Q residual for a given sample is the distance between the sample and its projection in the subspace of the model.

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

Syntax

C#
public DoubleVector QResiduals(
	DoubleMatrix X
)
Visual Basic (Declaration)
Public Function QResiduals ( _
	X As DoubleMatrix _
) As DoubleVector
Visual C++
public:
DoubleVector^ QResiduals(
	DoubleMatrix^ X
)

Parameters

X
Type: CenterSpace.NMath.Core..::.DoubleMatrix
Matrix of samples. Each row is a sample.

Return Value

Vector of Q residuals. The ith element of vector is the residual for the ith sample.

See Also