npac_detector.fit ================= .. py:module:: npac_detector.fit Functions --------- .. autoapisummary:: npac_detector.fit.fit_gaussian Module Contents --------------- .. py:function:: 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 :param X_data: Datapoints to fit :param plot_title: Title of the plot :param N_bins: Number of bins :param plot_or_not: If True a plot of the fit is generated :return: Amplitude and standard-deviation