How can i fit with array function

you know, if you want to fit, you should have a Function with analytical expression.
however i only an array function, that is, one array contains x
values and another array contains y values.
the x value is: xmin, xmin+e, xmin+2e, … xmax. and e is very small.

can i fit use the array function?


see examples in
-$ROOTSYS/tutorials/fit/fithist.C (replace the histogram by your array)