lightkurve.correctors.DesignMatrix.pca#

DesignMatrix.pca(nterms=6, n_iter=10)[source]#

Returns a new DesignMatrix with a smaller number of regressors.

This method will use Principal Components Analysis (PCA) to reduce the number of columns in the matrix.

Parameters
ntermsint

Number of columns in the new matrix.

n_iterint

Number of iterations that will be run by the power iteration algorithm to compute the principal components.

Returns
DesignMatrix

A new design matrix with PCA applied.