Re: how to fit a histogram with fixed parameters

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 12 Jun 2006 12:51:46 +0200


Could yous end the SHORTEST POSSIBLE RUNNING script reproducing the problem?

Rene Brun

Xianguo (Hsien-Kuo) LU wrote:
> Hi, rooters!
>
> I want to fit a histogram with fixed parameters.
> I did the following:
>
> f=new TF1("f","gaus",0,1);
>
> f->SetParLimits(1,1.1156,1.1156)
> or
> f->FixParameter(1,1.1156)
>
> but after fitting, the parameter changed.
> Can somebody tell me why and how to solve it?
>
> Thanks in advance!
>
> Cheers!
> Xianguo LU
>
>
>
> --
> Take flight into the sky, beyond the moon, beyond my mind.
>
> Xianguo LU (Hsien-Kuo LU)
> Physics Department, Peking University
> Beijing, China
> Tel: 0086-10-62753888(o)
Received on Mon Jun 12 2006 - 12:51:52 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET