nectarchain.trr_test_suite.utils.ExponentialFitter#

class ExponentialFitter(datas, bin_edges)[source]#

Bases: object

Represents an exponential fitter class that computes the expected distribution and the minus 2 log likelihood for a given dataset and exponential parameters.

Attributes:

datas (numpy.ndarray): The input data array. bin_edges (numpy.ndarray): The bin edges for the data.

Methods:
compute_expected_distribution(norm, loc, scale):

Computes the expected distribution given the normalization, location, and scale parameters.

expected_distribution(x):

Returns the expected distribution given the parameters in x.

compute_minus2loglike(x):

Computes the minus 2 log likelihood given the parameters in x.

Methods

compute_expected_distribution

compute_minus2loglike

expected_distribution