WeightEstimator

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef _WeightEstimator_H_
#define _WeightEstimator_H_

#include <vector>

/**
 *  Estimator that returns the weight (="quality") of a cluster.
 *  Abstract base class.
 */

template <class T>
class WeightEstimator {
public:
  virtual double weight(const std::vector<const T*>&) const = 0;
  virtual WeightEstimator* clone() const = 0;

  virtual ~WeightEstimator() {}
};

#endif