28.02.2014 Aufrufe

kafe – Ein Python-Paket für elementare Datenanalyse im ...

kafe – Ein Python-Paket für elementare Datenanalyse im ...

kafe – Ein Python-Paket für elementare Datenanalyse im ...

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

<strong>kafe</strong> Documentation, Release<br />

the first derivative of the fit function in each point and “projecting” the x error onto the<br />

resulting tangent to the curve.<br />

This last step is repeater until the change in the error matrix caused by the projection<br />

becomes negligible.<br />

quiet [boolean (optional)] Set to True if no output should be printed.<br />

verbose [boolean (optional)] Set to True if more output should be printed.<br />

external_fcn = None<br />

the (external) function to be min<strong>im</strong>ized for this Fit<br />

fit_function = None<br />

the fit function used for this Fit<br />

fit_one_iteration(verbose=False)<br />

Instructs the min<strong>im</strong>izer to do a min<strong>im</strong>ization.<br />

fix_parameters(*parameters_to_fix)<br />

Fix the given parameters so that the min<strong>im</strong>izer works without them when do_fit is called<br />

next. Parameters can be given by their names or by their IDs.<br />

get_current_fit_function()<br />

This method returns a function object corresponding to the fit function for the current<br />

parameter values. The returned function is a function of a single variable.<br />

returns [function] A function of a single variable corresponding to the fit function at the<br />

current parameter values.<br />

get_error_matrix()<br />

This method returns the covariance matrix of the fit parameters which is obtained by querying<br />

the min<strong>im</strong>izer object for this Fit<br />

returns [numpy.matrix] The covariance matrix of the parameters.<br />

get_parameter_errors(rounding=False)<br />

Get the current parameter uncertainties from the min<strong>im</strong>izer.<br />

rounding [boolean (optional)] Whether or not to round the returned values to significance.<br />

returns [tuple] A tuple of the parameter uncertainties<br />

get_parameter_values(rounding=False)<br />

Get the current parameter values from the min<strong>im</strong>izer.<br />

rounding [boolean (optional)] Whether or not to round the returned values to significance.<br />

returns [tuple] A tuple of the parameter values<br />

latex_parameter_names = None<br />

LATEX parameter names<br />

min<strong>im</strong>izer = None<br />

this Fit‘s min<strong>im</strong>izer (Minuit)<br />

number_of_parameters = None<br />

the total number of parameters<br />

parameter_names = None<br />

the names of the parameters<br />

print_fit_details()<br />

prints some fit goodness details<br />

print_fit_results()<br />

prints fit results<br />

12 Chapter 2. API documentation

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!