00001 #ifndef PDF_HEADER
00002 #define PDF_HEADER
00003
00004
00005
00011
00012
00013
00014
00015 #include <stdio.h>
00016 #include <stdlib.h>
00017 #include <math.h>
00018 #include <float.h>
00019
00020
00021
00022 #ifdef __cplusplus
00023 namespace RazorBack {
00024 #endif
00025
00030 typedef struct
00031 {
00032 double *X;
00033 double *Y;
00034 int *Yint;
00035 double Wid;
00036 int N, Bno;
00037 }
00038 Pdfrec_ ;
00039
00040
00041
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045
00057 int init_pdf(int Binno, double Binwidth, double Low, double Up,
00058 Pdfrec_ *Pdf);
00059
00069 int add_pdf(double Value, Pdfrec_ *Pdf);
00070
00077 int eval_pdf(Pdfrec_ *Pdf);
00078
00085 void remove_pdf(Pdfrec_ *Pdf);
00086
00087 #ifdef __cplusplus
00088 } }
00089 #endif
00090
00091
00092 #endif