petregr
Calculates least squares estimates using Nelder Mead's simplex
Contents
Syntax
[q, info] = petregr (func, par, chem, T_ref, data)
Description
Calculates least squares estimates using Nelder Mead's simplex method.
Input
- func: character string with name of user-defined function; see nrregr_st or nrregr
- par: structure with parameters
- chem: structure with biochemical parameters
- T_ref: scalar with refeerence temperature
- data: structure with
data values and field 'weight' with the weights of the data values field 'temp' with the temperature of some of the data values
Output
- q: structure with parameters, result of the least squares estimates
- info: 1 if convergence has been successful; 0 otherwise
Remarks
Set options with nmregr_options. Similar to nrregr_st, but slower and a larger bassin of attraction. The number of fields in data is variable
prepare variables
st: structure with data vaules wst: structure with weghts (identical to st) data4pred: data ready to send to predict files