gauss_fit_peak¶
- tessilator.lc_analysis.gauss_fit_peak(period, power)[source]¶
Applies the Gaussian fit to the periodogram. If there are more than 3 data points (i.e., more data points than fixed parameters), the “gauss_fit” module is used to return the fit parameters. If there are 3 or less points, the maximum peak is located and 9 data points are interpolated between the 2 neighbouring data points of the maximum peak, and the “gauss_fit” module is applied.
- Parameters:
- period
Iterable The period values around the peak.
- power
Iterable The power values around the peak.
- period
- Returns:
- popt
list The best-fit Gaussian parameters: A, B and C where A is the amplitude, B is the mean and C is the uncertainty.
- popt