PrincipalComponentAnalysis.GetPredictions Method

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

Definition

Namespace: Extreme.Statistics.Multivariate
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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

ArgumentOutOfRangeExceptionnumberOfComponents is less than zero or greater than the total number of components.
InvalidOperationExceptionThe model has not been fitted. Call the Fit() method first.

See Also