data fitting function
- To: mathgroup at smc.vnet.net
- Subject: [mg40823] data fitting function
- From: gongli at cutey.com (gong)
- Date: Sat, 19 Apr 2003 23:03:31 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
hi i would like to fit some data X = {{x1,y1},...,{xn,yn}} to a set of functions, then have this assigned to a function i can call: fittedfunc[x1] \approx y1 moreover, i need fittedfunc to be as fast as possible in terms of evaluation, since it will be used in a loop. i think it should be ideally a compiled function. i tried f=Function[x,Fit[X,{functions},x] bit im finding a major speed hit here, i think every time i call f[x] it refits the data. any help would be greatly appreciated. -gong