MINT2
HyperStatisticsFinder.h
Go to the documentation of this file.
1 
13 #ifndef HYPER_STATISTICS_FINDER_HH
14 #define HYPER_STATISTICS_FINDER_HH
15 
16 // HyperPlot includes
17 
18 #include "Mint/MessageService.h"
19 #include "Mint/StatisticsFinder.h"
20 #include "Mint/HyperPoint.h"
21 
23 
24  int _dim;
27  std::vector< std::vector < StatisticsFinder > > _statisticsFinders;
31  public:
32 
33  HyperStatisticsFinder( int dimension, bool mean = 1, bool width = 1, bool widthError = 1, bool keepOrderedEvents = 0);
40  HyperStatisticsFinder( const HyperPoint& point, bool mean = 1, bool width = 1, bool widthError = 1, bool keepOrderedEvents = 0);
48  void add( const HyperPoint& x );
50  double correlation(int i, int j) const;
52  double covarience(int i, int j) const;
55  double mean (int i) const;
57  double meanError(int i) const;
59  double width (int i) const;
61  double getMin (int i) const;
63  double getMax (int i) const;
66  HyperPoint mean () const;
68  HyperPoint meanError() const;
70  HyperPoint width () const;
72  HyperPoint getMin () const;
74  HyperPoint getMax () const;
77  const StatisticsFinder& getStatisticsFinder(int i) const{return _statisticsFinders.at(i).at(i);}
80  virtual ~HyperStatisticsFinder();
83 };
84 
95  public:
96  HyperMinMaxFinder(int dim) : HyperStatisticsFinder(dim,0,0,0,0){}
97  HyperMinMaxFinder(const HyperPoint& point) : HyperStatisticsFinder(point,0,0,0,0){}
100 
101 };
102 
113  public:
114  HyperMeanFinder(int dim) : HyperStatisticsFinder(dim,1,0,0,0){}
115  HyperMeanFinder(const HyperPoint& point) : HyperStatisticsFinder(point,1,0,0,0){}
119 };
120 
131  public:
132  HyperWidthFinder(int dim) : HyperStatisticsFinder(dim,1,1,0,0){}
133  HyperWidthFinder(const HyperPoint& point) : HyperStatisticsFinder(point,1,1,0,0){}
137 };
138 
149  public:
150  HyperWidthErrorFinder(int dim) : HyperStatisticsFinder(dim,1,1,1,0){}
151  HyperWidthErrorFinder(const HyperPoint& point) : HyperStatisticsFinder(point,1,1,1,0){}
155 };
156 
157 #endif
std::vector< std::vector< StatisticsFinder > > _statisticsFinders
double correlation(int i, int j) const
HyperMeanFinder(const HyperPoint &point)
HyperWidthFinder(const HyperPoint &point)
HyperWidthErrorFinder(const HyperPoint &point)
HyperStatisticsFinder(int dimension, bool mean=1, bool width=1, bool widthError=1, bool keepOrderedEvents=0)
HyperMinMaxFinder(const HyperPoint &point)
void add(const HyperPoint &x)
double covarience(int i, int j) const
const StatisticsFinder & getStatisticsFinder(int i) const