PROBI  1.0
 All Classes Functions
ProbabilisticPoint.hpp
1 #ifndef PROBABILISTICPOINT_H
2 #define PROBABILISTICPOINT_H
3 
4 #include <vector>
5 #include <utility>
6 
7 #include "WeightedPoint.hpp"
8 
13 {
14 public:
15  // constructors
16  ProbabilisticPoint(std::vector<WeightedPoint> distribution);
17  ProbabilisticPoint(std::vector<WeightedPoint> distribution, double weight);
18 
19  // operators
20  WeightedPoint & operator[] (int index);
21  WeightedPoint const & operator[] (int index) const;
22 
23  // iterators
24  std::vector<WeightedPoint>::const_iterator cbegin() const;
25  std::vector<WeightedPoint>::const_iterator cend() const;
26  typedef std::vector<WeightedPoint>::const_iterator citerator;
27 
28  // accessors / mutators
29  void setWeight(double weight);
30  unsigned int getSizeOfDistribution() const;
31  double getWeight() const;
32  double getRealizationProbability() const;
33 
34 private:
35  std::vector<WeightedPoint> distribution;
36  double weight;
37  double realizationProbability;
38 };
39 
40 #endif