API Reference¶
Classes¶
Abstract class for Matrix and Vector. |
|
|
Allows for delayed method calls |
|
Generates perturbated matrices to estimate uncertainty |
|
Normalizes NLD nad γSF extracted from the ensemble |
|
Extracts nld and γSF from an Ensemble or a Matrix |
First generation method from Guttormsen et al. (NIM 1987). |
|
|
Stores 2d array with energy axes (a matrix). |
|
Dataclass for Model |
|
Storage for normalization parameters + some convenience functions |
|
Normalize γSF to a given` <Γγ> (Gg) |
|
Normalizes NLD to empirical data |
|
Simultaneous normalization of nld and gsf. |
|
Interpolates response read from file for current setup |
|
Class to store the results of the Oslo Method |
|
Calculates spin distributions, spin cuts (...) |
|
Performs Guttormsen unfolding |
|
Stores 1d array with energy axes (a vector) |
|
Return new Matrix of given shape, filled with zeros. |
Functions¶
|
division function designed to ignore / 0, i.e. div0([-1, 0, 1], 0 ) -> [0, 0, 0]. |
|
Load example raw data. |
|
Fill negative channels with positive counts from weighted neighbor chnls. |
|
Fill negative channels with positive counts from neighboring channels. |
|
Function which smooths an array of counts by a Gaussian of full-width-half-maximum FWHM. Preserves number of counts. :type array_in: :param array_in: Array of inbound counts to be smoothed :type array_in: array, double :type E_array: :param E_array: Array with energy calibration of array_in, in mid-bin calibration :type E_array: array, number :type fwhm: :param fwhm: The full-width-half-maximums. Need to be same size as array_in :type fwhm: array, double :type truncate: :param truncate: The window width of the Gaussian that is used to smoothe, in units of sigma. Defaults to 3. :type truncate: double, optional. |
|
Smooth a matrix with a Gaussian |
|
Returns a normalized Gaussian supported on Emids. |
|
Finds the index of the closest element in the array |
List examples |
|
|
Load discrete levels without smoothing |
|
Load discrete levels with smoothing |
|
Computes first generation matrix from nld and gSF |
|
Normalize each row to unity |
|
Rebin an array of counts from binning mids_in to binning mids_out |
|
Rebin a matrix of counts from binning mids_in to binning mids_out |
|
Maps axis to 0, 1 or 2 according to which axis is specified |
Variables¶
Todo
More beautiful way of excluding imported classes/variables.