fit_basis¶
- tessilator.detrend_cbv.fit_basis(flux, basis, scl=None)[source]¶
Calculate the flux-correction weights for the co-trending basis vectors (CBVs).
This routine is taken directly from Aigrain et al. 2017
- Parameters:
- flux
iterable The list of normalised flux values from the target lightcurve.
- basis
iterable The list of co-trending basis vectors.
- scl
float, optional, default=’None’ An additional scaling factor for the CBVs.
- flux
- Returns:
- weights
iterable The weights assigned for each lightcurve data point.
- weights