npac_detector.fit
Functions
|
Fit a gaussian distribution to an histogram while ignoring NaNs |
Module Contents
- npac_detector.fit.fit_gaussian(X_data: numpy.array, mask: tuple[float], plot_title: str, N_bins: int, plot_or_not=True) tuple[float]
Fit a gaussian distribution to an histogram while ignoring NaNs
- Parameters:
X_data – Datapoints to fit
plot_title – Title of the plot
N_bins – Number of bins
plot_or_not – If True a plot of the fit is generated
- Returns:
Amplitude and standard-deviation