lightkurve.correctors.DesignMatrix.split#
- DesignMatrix.split(row_indices, inplace=False)[source]#
Returns a new
DesignMatrix
with regressors split into multiple columns.This method will return a new design matrix containing n_columns * len(row_indices) regressors. This is useful in situations where the linear regression can be improved by fitting separate coefficients for different contiguous parts of the regressors.
- Parameters
- row_indicesiterable of integers
Every regressor (i.e. column) in the design matrix will be split up over multiple columns separated at the indices provided.
- Returns
DesignMatrix
A new design matrix with shape (n_rows, len(row_indices)*n_columns).