Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | fitting | |
Tool | functionfitter |
This function evaluates the residual of the data and the model (evaluated with the parameters of the solution) and returns a numeric vector.
- 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]