Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: fitter.getstate - Function Up: fitter - Tool Previous: fitter.init - Function


fitter.set - Function



Package utility
Module fitting
Tool fitter


(Re-)initialize selected fitting tool properties


Synopsis
set(n, type, colfac, lmfac, id)


Arguments

n in number of unknowns
    Allowed: integer
    Default: unset
type in type of solution
    Allowed: coded value as string. Allowed: real, complex, separable, asreal, conjugate, with case-insensitive minimum-match
    Default: unset
colfac in collinearity factor
    Allowed: positive float
    Default: unset
lmfac in Levenberg-Marquardt factor
    Allowed: positive float
    Default: unset
id in the id of a sub-tool
    Allowed: fitter id
    Default: 0


Returns
bool


Description
Set selected properties of the fitting tool. All unset properties remain the same (in the init method all properties are (re-)initialized). Like in the constructor, the number of unknowns to be solved for; the number of simultaneous solutions; the type (as code or as case insensitive minimum-match string); and the collinearity and Levenberg-Marquardt factor can be specified.



Example
- include 'fitting.g'
- fit := fitter()
- fit.init(5,'r')
T
- fit.getstate()
[n=5, typ=0, colfac=1e-08, lmfac=0.001, type=real] 
- fit.set(type='compl')
T
- fit.getstate()
[n=5, typ=1, colfac=1e-08, lmfac=0.001, type=complex]





next up previous contents index
Next: fitter.getstate - Function Up: fitter - Tool Previous: fitter.init - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15