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

#include <cmath>

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

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