Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | fitting | |
Tool | functionfitter |
This function returns a Glish record holding the internal data. The record has fields 'x', 'y', 'xerr', 'yerr' and 'mask' holding the obvious quantities. The data error fields may be unset if no data errors were given. However, the mask field will always be filled in. If you gave no mask, the mask field will hold an all T (good) vector.
- include 'functionfitter.g' - ff := functionfitter() - x := 1:10 - y := 2 + 3*x - ff.setdata (x, y) - r := ff.getdata() - print r [x=[1 2 3 4 5 6 7 8 9 10] , y=[5 8 11 14 17 20 23 26 29 32] , xerr=[i_am_unset=i_am_unset], yerr=[i_am_unset=i_am_unset], mask=[T T T T T T T T T T] ]