Dear Rene, I did not depict clearly my problem. Apart from smooting and interpolating by splines I need to save the function code in let's say C code to be usable by other C++ (or C) programs having nothing to do with ROOT. In other words. Can I save cubic splines in the form of C function? Best regards, Tomasz -------------------------------------- Tomasz Bold mail me: bold@ftj.agh.edu.pl, Tomasz.Bold@cern.ch Tomasz.Bold@desy.de or call: +48 12 617 4729 (AGH) +48 12 662 8023 (IFJ) ------------------------------------- On Tue, 20 Apr 2004, Rene Brun wrote: > Tomasz, > > The SMOOTH command in PAW was smoothing histograms. The equivalent function > in ROOT is provided by TH1::Smooth > > You can also use cubic and quintic splines. See classes TSpline3, TSline5 > see $ROOTSYS/tutorials/splines.C > > Rene Brun > > Tomasz Bold wrote: > > > > Dear *, > > I am looking for replacement of smooth functionality present in > > PAW. I figured out that fiting the plynomials of > > degree, let's say 2 to the histogram in consecutive ranges may be OK. > > Saving fit parameters as a definition of soothed function would work for > > me. > > > > Not surprisingly the pieces does not comprise continous curve. > > > > Any idea how to deal with the problem. Is my aproach correct? > > > > Is there methods to fit Csplines in ROOT. > > > > Best regards, > > Tomasz > > > > -------------------------------------- > > Tomasz Bold > > mail me: > > bold@ftj.agh.edu.pl, > > Tomasz.Bold@cern.ch > > Tomasz.Bold@desy.de > > or call: > > +48 12 617 4729 (AGH) > > +48 12 662 8023 (IFJ) > > ------------------------------------- > >
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET