summaryrefslogtreecommitdiff
path: root/extractor/features/sample_source_count.cc
blob: b110fc51346b28d7825aa0748eb49b4956f499cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "sample_source_count.h"

#include <cmath>

namespace extractor {
namespace features {

double SampleSourceCount::Score(const FeatureContext& context) const {
  return log10(1 + context.num_samples);
}

string SampleSourceCount::GetName() const {
  return "SampleCountF";
}

} // namespace features
} // namespace extractor