CALL HBFUN1 (ID,CHTITL,NX,XMI,XMA,FUN)
Action: Books 1-dimensional histogram and fills it with the values of the
external function FUN(X)
computed at the centre of each bin.
One computer word per channel is used.
The first five parameters are as for HBOOK1.
EXTERNAL
in the calling subroutine, and to be
supplied by the user.
CALL HBFUN2 (ID,CHTITL,NX,XMI,XMA,NY,YMI,YMA,FUN)
Action: Books a 2-dimensional
histogram and fills it with the values of the external
function FUN(X,Y)
, computed at the centre of each bin.
One computer word per channel is used.
The first eight parameters are as for HBOOK2.
EXTERNAL
in the calling subroutine, and to be supplied by the user.
Action: Samples the function FUN
, which must have been declared
EXTERNAL
,
at the centre of the bins of a histogram. The function will be
superimposed onto the histogram at editing time and its values optionally
printed out (see HIDOPT(ID,'PFUN')
PFUN
ID=0
signals that the function should be calculated
for all existing 1-dimensional histograms.
REAL FUNCTION FUN(X)
.X
will be the central value of a histogram bin.
The user must return
the corresponding function at that point as a value in FUN
.
Remark:
FUN
cannot contain any call to an entry of the HBOOK package.
ID
.
If the latter case, the values of the old function will be
overwritten by the new one.
with:
number of channels of histogram | |
contents of channel
| |
value of function at centre of channel
| |
number of entries in channel i | |
weight of event in channel , i.e. | |
square root of contents or | |
as given by HBARX/HPAKE |