Re: Fitting multiple subranges with user defined functions

From: Gabriele Postorino <gioppo_at_inventati.org>
Date: Wed, 16 May 2007 18:45:50 +0200


Hai scritto:
> Hi Gabriele,
>
> Expressions like
>
> total = new TF1("fit","ruth(0)+moliere(2)+ruth(5)",mina,maxa);
>
> are not supported by TF1 (see doc).
>
> You should proceed like shown in our tutorial FittingDemo.C
>
> Rene Brun

The tutorial you talk about refers to a fit on all values with a sum of functions. What I would like to do is to fit with a function defined in different ways on different ranges:

            A/sin(x-x0)^4 x < sx || x > dx func =

            gaus sx < x <dx

Probably I'm missing something but I couldn't manage to do it.

Gabriele Received on Wed May 16 2007 - 18:46:02 CEST

This archive was generated by hypermail 2.2.0 : Thu May 17 2007 - 17:50:01 CEST