summaryrefslogtreecommitdiff
path: root/extractor/features/is_source_singleton.cc
blob: 754df3bf5135565e0422d25c335199ab6b186118 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "is_source_singleton.h"

#include <cmath>

double IsSourceSingleton::Score(const FeatureContext& context) const {
  return context.sample_source_count == 1;
}

string IsSourceSingleton::GetName() const {
  return "IsSingletonF";
}