| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 1556 |
|
| Package | utility | |
| Module | fitting | |
| Tool | functionfitter |
| fit | in | Generate the model from the fit or the functional | |
| Allowed: | T or F | ||
| Default: | T | ||
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.
- 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]