Hello,
I would like to extract the minimum of a TSpline fit of a TGraph.
The only way I found was to create a function
Double_t myFunc(x){
mygraph=new TGraph(n,a,b);
....
return mygraph.Eval(x,0,"S");
}
then I declare a function
TF1 * f1 = new TF1("f1","myFunc(x)", min, max);
low=f1->GetMinimum(min, max);
Does anyone know an alternative method? the problem is that I actually
have an array of TGraph and so the previous solution is not easy to
implement.
Cheers
Pietro
-- -----------------------------------------Received on Wed Jul 18 2007 - 10:08:43 CEST
* Pietro Cavalleri, PhD Student *
* LPNHE 4, pl. Jussieu 75005 Paris *
* +33-144274166 cavaller_at_lpnhe.in2p3.fr *
-----------------------------------------
This archive was generated by hypermail 2.2.0 : Wed Jul 18 2007 - 11:50:02 CEST