OPAL
DummyLabelEstimator.h
1 #pragma once
2 
3 #include "MultipointLabelEstimator.h"
4 
5 
6 template <class LabelType>
7 class DummyLabelEstimator : public MultipointLabelEstimator<LabelType> {
8 public:
9 
11  using CandidateContainer = typename SuperClass::CandidateContainer;
12  using WeightType = typename SuperClass::WeightType;
13 
14  virtual LabelType
15  EstimateLabel(const CandidateContainer &candidates) const override final {
16  auto i = candidates.size() / 2;
17  return candidates[i].first;
18  }
19 };
Definition: MultipointLabelEstimator.h:8
Definition: DummyLabelEstimator.h:7