Re: [ROOT] Re: TProfile->Scale()

From: Art Poskanzer (AMPoskanzer@lbl.gov)
Date: Thu Apr 13 2000 - 19:37:13 MEST


Rene:

Thanks for telling me that the only way to scale a TProfile in a 1D sense is to
convert it to a 1D. This is what I suspected in my original mail.

The behavior of TProfile::Scale() is correct if you think of a profile only as
the mean of the y of a 2D vs. x. But many of us use a profile histogram to
calculate the mean of any quantity vs. x. We fill the profile with the quantity
as the weight. Then manipulations, like Scale() of the contents, make sense.
Thus, I think, it would be good to have a TProfile function to transform to a
1D, so that 1D style manipulations could be done. I suggest this for a future
improvement.

Art

Brun wrote:

> Art,
>
> The behaviour of TProfile::Scale is correct in PAW and Root.
>
> Rene Brun
>
> Art Poskanzer wrote:
> >
> > > Is the only way to convert it to loop over the bins getting each
> > > content and error and putting them into the 1D?
> > >
> > > Art Poskanzer and Glenn Cooper





This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:23 MET