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.set - Function Up: fitter - Tool Previous: fitter.reset - Function


fitter.init - Function



Package utility
Module fitting
Tool fitter


Initialize a fitting tool for use or re-use


Synopsis
init(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
Initialize the fitting tool (or the sub-tool if an id is specified). Like in the constructor, the number of unknowns to be solved for; the type (as code or as case insensitive minimum-match string); and the collinearity and Levenberg-Marquardt factor can be specified (see fitter for all options). Individual values can be overwritten with the set function.



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]





next up previous contents index
Next: fitter.set - Function Up: fitter - Tool Previous: fitter.reset - 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