Principal Component Analysis.Get Predictions 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#
A matrix that contains the predicted variables in its columns.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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
Argument | numberOfComponents is less than zero or greater than the total number of components. |
Invalid | The model has not been fitted. Call the Fit() method first. |