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.done - Function Up: fitter - Tool Previous: fitter.type - Function


fitter.fitter - Function



Package utility
Module fitting
Tool fitter


Create a sub-tool


Synopsis
fitter(n, type, colfac, lmfac)


Arguments

n in number of unknowns
    Allowed: integer
    Default: 0
type in type of solution
    Allowed: coded value as string. Allowed: real, complex, separable, asreal, conjugate, with case-insensitive minimum-match
    Default: 'real'
colfac in collinearity factor
    Allowed: positive float
    Default: 1e-8
lmfac in Levenberg-Marquardt factor
    Allowed: positive float
    Default: 1e-3


Returns
fitter id


Description
Create a sub-tool (which can be used in the same way as a fitter tool ). This function returns an identification, which has to be used in the id argument of subsequent calls. The call can specify the standard constructor arguments (n, type, colfac, lmfac), or can specify them later in a set statement.



Example
- include 'fitting.g'
- dfit.type()
fitter 
- myfit := dfit.fitter(2)  # Create a fitter for 2 real unknowns
- dfit.fitpoly(1, 1:5, 1:5, id=myfit) # solve x+y=1; x+2y=2; ... x+5y=5
T
- print dfit.solution(id=myfit), dfit.error(id=myfit) #  show solution
[0 1]  [0 0]





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