Hi Juan, juan> I wonder if it is possible to store the results of a fit in juan> a variable. I would like to save the number of free juan> parameters, \chi^2, \chi^2_\nu in a file for easy access. I think what you want are the optional arguments to fit_counts: fit_counts SYNOPSIS search for best fit parameters USAGE s = fit_counts ([response_type][,&info_struct]) DESCRIPTION By default, this function fits the current model to the counts data by folding the model through the instrument response. If no instrument response has been assigned, an ideal instrument is assumed. If no errors occurred during the fit, the return status is zero, otherwise the return value is -1. The two optional arguments may appear in any order. The optional Struct_Type argument should provide the address of a structure: variable info_struct = struct {statistic, num_variable_params, num_bins} On return, the struct fields contain the value of the chi^2 fit-statistic ( statistic), the number of variable fit parameters ( num_variable_params) and the number of data bins ( num_bins). ... If you want to put them into a file, you can use writecol(). -- Dave David Huenemoerder 617-253-4283 (o); -253-8084 (f); http://space.mit.edu/home/dph MIT Kavli Institute for Astrophysics and Space Research 70 Vassar St., NE80-6065, Cambridge, MA 02139 [Admin. Asst.: Elaine Tirrell, 617-253-7480, egt_at_email.domain.hidden ---- You received this message because you are subscribed to the isis-users list. To unsubscribe, send a message to isis-users-request_at_email.domain.hiddenwith the first line of the message as: unsubscribeReceived on Wed Oct 14 2009 - 15:32:44 EDT
This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:46 EDT