FitModel

class FitModel(elec_distr=None, jet=None, name='no-name', out_dir=None, flag=None, template=None, loglog_poly=None, analytical=None, nu_size=100, **keywords)[source]

Bases: jetset.base_model.Model

This class creates an interface to handle a fit Model. The relevant class members are

  • SED object storing the SED data points
  • model_pars, a par_array_builder object returned by the SSC_param constructor
  • jet_builder object

Parameters

Parameters:
  • jet – (par_array_builder object)
  • elec_distr_type – (str) name of the electron distribution model
  • template – (spectral_shapes.template object)

Members

Variables:

Methods Summary

PlotModel(Plot[, clean, autoscale, label])
add_component(moldel_comp)
eval([nu, fill_SED, get_model, loglog, …]) evaluates the SED for the current parameters and fills the SED member
fit(SEDdata, nu_min, nu_max[, fitname]) shortcut to call minimizer.fit_SED()
get(par_name, *args) returns the value of a specific keyword for a specific parameter of the parameter array
get_conf_range(par_name[, frac_range])
get_val(par_name) returns the value of a specific parameter of the parameter array
set(par_name, *args, **kw) sets the value of a specific parameter of the parameter array
set_nu_grid([nu_min, nu_max, nu_size])
show_pars() shows all the parameters of the fit_array

Methods Documentation

PlotModel(Plot, clean=False, autoscale=False, label=None)[source]
add_component(moldel_comp)[source]
eval(nu=None, fill_SED=True, get_model=False, loglog=False, plot=None, label=None, phys_output=False)[source]

evaluates the SED for the current parameters and fills the SED member

fit(SEDdata, nu_min, nu_max, fitname=None)[source]

shortcut to call minimizer.fit_SED()

Parameters:
  • SEDdata – SEDdata object
  • nu_min – minimun frequency for the fit range interval
  • nu_max – maximum frequency for the fit range interval
get(par_name, *args)[source]

returns the value of a specific keyword for a specific parameter of the parameter array

Parameters:par_name

Note

see the documentation of par_array_builder for arguments and keywords

get_conf_range(par_name, frac_range=None)[source]
get_val(par_name)[source]

returns the value of a specific parameter of the parameter array

Parameters:par_name

Note

see the documentation of par_array_builder for arguments and keywords

set(par_name, *args, **kw)[source]

sets the value of a specific parameter of the parameter array

Parameters:par_name

Note

see the documentation of par_array_builder for arguments and keywords

set_nu_grid(nu_min=None, nu_max=None, nu_size=None)[source]
show_pars()[source]

shows all the parameters of the fit_array