00001 #ifndef PDF2_H
00002 #define PDF2_H
00003
00004
00005
00010
00011
00012
00013
00014 #include <stdio.h>
00015 #include <stdlib.h>
00016 #include <math.h>
00017 #include <float.h>
00018
00019
00020
00021 #ifdef __cplusplus
00022 namespace RazorBack {
00023 #endif
00024
00034 typedef struct
00035 {
00036 double *X1, *X2;
00037 double **Y;
00038 unsigned long **Yint;
00039 double Wid1, Wid2;
00040 unsigned long N, Bno1, Bno2;
00041 }
00042 Pdfrec2_ ;
00043
00044
00045
00046 #ifdef __cplusplus
00047 extern "C" {
00048 #endif
00049
00059 int init_pdf2(int Binno1, int Binno2, double Binwidth1, double Binwidth2,
00060 double Low1, double Up1, double Low2, double Up2,
00061 Pdfrec2_ *Pdf);
00062
00072 int add_pdf2(double Value1, double Value2, Pdfrec2_ *Pdf);
00073
00080 int eval_pdf2(Pdfrec2_ *Pdf);
00081
00087 void remove_pdf2(Pdfrec2_ *Pdf);
00088
00089 #ifdef __cplusplus
00090 } }
00091 #endif
00092
00093
00094
00095 #endif