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


next up previous contents index
Next: functionfitter.getresidual - Function Up: functionfitter - Tool Previous: functionfitter.geterror - Function


functionfitter.getmodel - Function



Package utility
Module fitting
Tool functionfitter


Evaluate the model


Synopsis
getmodel(fit)


Arguments

fit in Generate the model from the fit or the functional
    Allowed: T or F
    Default: T



Returns
Numeric vector or fail



Description

This function evaluates the model with the parameters either of the solution (fit=T) or the function (fit=F) and returns a numeric vector.

If you evaluate the model with the parameters of the function (fit=F) they are the parameters that you set with the setparameters function. These parameters never change.



Example
- include 'functionfitter.g'
- ff := functionfitter()
- x := 1:10
- y := 2 + 3*x
- ff.setdata (x, y)
- ff.setfunction ('p0 + p1*x')
- ff.fit(linear=T)
[2 3]
- ff.getmodel()
[5 8 11 14 17 20 23 26 29 32]





next up previous contents index
Next: functionfitter.getresidual - Function Up: functionfitter - Tool Previous: functionfitter.geterror - 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