next up previous contents index
Next: Statistical differences between Up: Operations on Histograms Previous: Operations on Histograms

Arithmetic Operations

 

                  Histograms can be added, subtracted, divided or multiplied, provided their number of channels are the same.

CALL HOPERA (ID1,CHOPER,ID2,ID3,C1,C2)

Action: Fills an histogram I3 with values such that, logically (operands are the bin contents)

ID3 = C1 * ID1 (OPERATION) C2 * ID2

Input parameters:
ID1,ID2
Operand histogram identifiers.
CHOPER
Character variable specifying the kind of operation to be performed (+,-,*,/);
'B' compute binomial errors;
'E' compute error bars on the resulting histograms correctly, assuming that the input histograms ID1 and ID2 are independent.
For instance /BE will generate binomial errors for the division of ID1 by ID2.
ID3
Identifier of the histogram containing the result after the operation.
C1,C2
Multiplicative constants.

Remark:


next up previous contents index
Next: Statistical differences between Up: Operations on Histograms Previous: Operations on Histograms

Last update: Tue May 16 09:09:27 METDST 1995