chisq

command list , class list , introduction .
 CHISQ N1 N2 N3 N4 LOG SET -- Computes chisq of one set of spectra
                          compared to another.

 CHISQ is designed for comparison between observed data in slots
 N1 to N2 and a set of model data in slots N3 to N4. Each observed
 spectrum will be compared to every model and the chi**2 computed
 will be reported. The number of degrees of freedom are also
 computed and reported as 'NDF'. For a rather more sophisticated and
 specific routine of comparable nature see 'fitspec'.

 CHISQ does nothing to either models or observed spectra so it is
 up to you to make sure that the wavelength scales are the same
 and that any processing has been applied symmetrically to the
 various spectra.

 The results can be stored to a file. Since the models may depend
 on a variety of parameters, no attempt is made to print them out.
 You are advised to make the model names useful as in
 'log T = 4.5, log g = 8.2' because the names of the model spectra
 will be printed out.

  Parameters:
             N1   -- First of observed spectra 
             N2   -- Last of observed spectra
             N3   -- First of model spectra
             N4   -- Last of model spectra
             LOG  -- Name of log file. Blank to ignore. The full
                     32 characters will be used for the model names
                     (in contrast to the terminal output which uses
                     shorter names for compactness).
             SET  -- Yes to mask bad regions from being used to compute
                     the chi**2. Data flagged with negative error bars
                      will also be ignored (observed spectra only).


Related commands: fitspec and genspec .

This command belongs to the classes: fitting .


Tom Marsh, trm@astro.soton.ac.uk, Tue Oct 27 08:56:34 1998 .