burstfit.utils.math
f_test
def f_test(x, y)
F-Test
Arguments:
x
- Input array 1y
- Input array 2
Returns:
tests
def tests(off_pulse, on_pulse_res, pth=0.05, ntest=1)
Run statistical tests to compare the two inputs
Arguments:
off_pulse
- input array to compareon_pulse_res
- input array to comparepth
- threshold on p value to consider the distributions similarntest
- minimum number of tests to pass
Returns:
fmae
def fmae(param, m, a, param_err=0, m_err=0, a_err=0)
Arguments:
param
- parameter valuem
- number to multiply to parama
- number to addparam_err
- error on the fitted parameterm_err
- error on multipliera_err
- error on adder
Returns:
transform_parameters
def transform_parameters(params, mapping, param_names)
Transform parameters and their errors using mapping
Arguments:
params
- dictionary with parameter values and errors in "popt" and "perr"mapping
- mapping for all parametersparam_names
- names of parameters to be used to identify the correct mapping
Returns: