common.num.gaussian_tools Module

Generic functions to generate and fit gaussians

based on ‘CodedMaskImage.py’ python program of Cyril Lachaud

modfied from http://scipy-cookbook.readthedocs.io/items/FittingData.html

Created on 20 mars 2018

@author: Catalano Camille, APC

Functions

fit_gaussian_2d(data, fitmethod[, verbose]) fit the 2D distribution with 2D gaussian function
gaussian_1d(height, center, sigma) Returns a gaussian function + offset with the given parameters
gaussian_2d_1width(height, center_x, …) Returns a gaussian function with the given parameters
gaussian_2d_1width_offset(height, center_x, …) Returns a gaussian function + offset with the given parameters
gaussian_2d_2width(height, center_x, …) Returns a gaussian function with the given parameters
gaussian_2d_2width_offset(height, center_x, …) Returns a gaussian function + offset with the given parameters
gaussian_2d_fixedwidth(height, center_x, …) Returns a gaussian function with the given parameters
gaussian_2d_fixedwidth_offset(height, …) Returns a gaussian function + offset with the given parameters
gaussian_2d_moments(data, fitmethod) Guess the gaussian parameters of a distribution