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.getsolution - Function Up: functionfitter - Tool Previous: functionfitter.getmodel - Function


functionfitter.getresidual - Function



Package utility
Module fitting
Tool functionfitter


Evaluate the residual


Synopsis
getresidual()


Returns
Numeric vector or fail



Description

This function evaluates the residual of the data and the model (evaluated with the parameters of the solution) and returns a numeric vector.



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.getresidual()
[0 0 0 0 0 0 0 0 0 0]





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