C-PLOT

Scientific Graphics and Data Analysis

fitpar.4

fit-parameter gathering user function

SYNOPSIS

fn fitpar.4 [par_file x_par y_par [label_flag]]

DESCRIPTION

The function fitpar.4 reads in multiple parameter sets generated with the sp or sP commands of the type 5 fitting functions.

The parameter sets must be in a single file, which can be done from the fitting package by saving parameters with the append option or from the shell by combining files with the cat utility.

When invoked without arguments, fitpar.4 will ask for the name of the parameter file, let you view a list of the parameter names, prompt you for the parameter index numbers to use for x and y, and ask if you want to have the axes labels taken from the parameter names. If the parameters were saved with errors, those values will be put in the y error-bar vector.

You can assign the value of chi-squared to x or y by entering -1 as the parameter number.

You can pass the parameter file-name and parameter numbers to the function on the command line from C-PLOT. A . in place of the file name means the function will use the same file as before.

For example,

fn fitpar.4 params 0 4

will initialize the function with file params and return parameter x and parameter 4 y. A subsequent call

fn  .  .  0  3

will return parameter 0 as x and parameter 3 as y.

It can be useful to include a parameter in your fit functions not needed in the fitting but used in this function for x.

The optional fourth command-line argument can turn the assign-axis-labels-from-parameter-names feature on or off. Zero turns the feature off, non-zero turns it on.

SEE ALSO

eb fn fit