00001 #ifndef CDF_HEADER
00002 #define CDF_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
00029 typedef struct
00030 {
00031 double *X;
00032 double *Y;
00033 int *Yint;
00034 int N, Bno;
00035 }
00036 Cdfrec_ ;
00037
00038
00039
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043
00055 int init_cdf(int Binno, double Low, double Up, Cdfrec_ *Cdf);
00056
00063 int add_cdf(double Value, Cdfrec_ *Cdf);
00064
00072 int eval_cdf(Cdfrec_ *Cdf);
00073
00080 void remove_cdf(Cdfrec_ *Cdf);
00081
00082 #ifdef __cplusplus
00083 } }
00084 #endif
00085
00086
00087
00088 #endif