PrincipalComponentAnalysis.GetPredictions Method

Returns the predicted values of the variables based on the specified number of components.

Definition

Namespace: Numerics.NET.Statistics.Multivariate
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public Matrix<double> GetPredictions(
	int numberOfComponents
)

Parameters

numberOfComponents  Int32
The number of components to include in the prediction.

Return Value

Matrix<Double>
A matrix that contains the predicted variables in its columns.

Exceptions

ArgumentOutOfRangeException

numberOfComponents is less than zero or greater than the total number of components.

InvalidOperationException

The model has not been fitted. Call the Fit() method first.

See Also