The standard way of computing the principal component analysis using AOCL-DA is as follows.
Initialize a
aoclda.factorization.PCA()object with options set in the class constructor.Compute the PCA for your data matrix using
aoclda.factorization.PCA.fit().Perform further transformations in necessary using
aoclda.factorization.PCA.transform()oraoclda.factorization.PCA.inverse_transform().Extract results from the
aoclda.factorization.PCA()object via its class attributes.
Initialize a
da_handlewithda_handle_typeda_handle_pca.Pass data to the handle using da_pca_set_data_?.
Set the number of principal components required and the type of PCA using da_options_set_? (see below).
Compute the PCA using da_pca_compute_?.
Perform further transformations as required, using da_pca_transform_? or da_pca_inverse_transform_?.
Extract results using da_handle_get_result_?.