PROBI  1.0
 All Classes Functions
DatastreamCoreset.hpp
1 #ifndef DATASTREAMCORESET_HPP
2 #define DATASTREAMCORESET_HPP
3 
4 #include <iterator>
5 
6 #include "MergeReduce.hpp"
7 #include "ProbabilisticPoint.hpp"
8 #include "FastCoreset.hpp"
9 
13 class DatastreamCoreset : public MergeReduce<ProbabilisticPoint>
14 {
15 private:
16  FastCoreset * fastCoreset;
17 public:
22  DatastreamCoreset(FastCoreset * fastCoreset, int firstBucketSize) :
23  fastCoreset(fastCoreset),
24  MergeReduce(firstBucketSize)
25  {
26  }
27 
28  virtual ~DatastreamCoreset()
29  {
30  }
31 private:
32  virtual void reduce(std::vector<ProbabilisticPoint> const * input, int level, std::vector<ProbabilisticPoint> * reduced);
33 };
34 
35 #endif /* DATASTREAMCORESET_HPP */
36