pxar
 All Classes Namespaces Functions Variables Typedefs Friends
shist256.hh
1 #ifndef SHIST256_H
2 #define SHIST256_H
3 
4 #include "pxardllexport.h"
5 
6 class DLLEXPORT shist256{
7 public:
8  shist256();
9  ~shist256();
10 
11  void fill(int x, float w = 1.);
12  void clear();
13  float get(int i);
14  float get(float i);
15  float getSumOfWeights();
16 
17 private:
18  static const int NBINS = 256;
19  float fX[NBINS+2];
20  // fX[0] = underflow
21  // fX[1] = 0 .. 1
22  // fX[256] = 255 .. 256
23  // fX[257] = overflow
24 };
25 
26 #endif