AIC_selector

tessilator.lc_analysis.AIC_selector(x, y, err, poly_max=10)[source]

Chooses the most appropriate polynomial fit, using the Aikaike Information Criterion

This function uses the Aikaike Information Criterion to find the most appropriate polynomial order to a set of X, Y data points.

Parameters:
xIterable

The x-component of the data

yIterable

The y-component of the data

errIterable

The error bar on ‘y’

poly_maxint, optional, default=10

The maximum polynomial order to test

Returns:
poly_ordint

The best polynomial order

coeffslist

The polynomial coefficients.