burstfit.model
Model Objects
class Model()
Wrapper class for spectra and profile functions.
Arguments:
function
- Fitting functionparam_names
- List of parameter namesparams
- list of parameter values
evaluate
| def evaluate(x, *params)
Evaluate the function at input parameters
Arguments:
x
- input x values to evaluate function*params
- params to use in the function
Returns:
get_param_dict
| def get_param_dict(*params, *, keys="params")
Convert input param list to a dictionary with param_names
Arguments:
*params
- parameter list
Returns:
nparams
| @property
| def nparams()
Returns:
number of parameters
SgramModel Objects
class SgramModel()
Wrapper class for spectrogram model
Arguments:
pulse_model
- Model instance of pulse functionspectra_model
- Model instance of spectra functionsgram_fn
- Spectrogram functionmetadata
- Metadata for sgram functionparam_names
- names of sgram parametersclip_fac
- clipping factor
nparams
| @property
| def nparams()
Returns:
number of parameters
evaluate
| def evaluate(x, *params)
Function to evaluate sgram_function at input parameters
Arguments:
x
- Dummy input. Not used.*params
- Parameters to evaluate sgram_function at.
Returns:
model
- 2D array of model