summaryrefslogtreecommitdiff
path: root/extractor/features/sample_source_count.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extractor/features/sample_source_count.cc')
-rw-r--r--extractor/features/sample_source_count.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/extractor/features/sample_source_count.cc b/extractor/features/sample_source_count.cc
new file mode 100644
index 00000000..b110fc51
--- /dev/null
+++ b/extractor/features/sample_source_count.cc
@@ -0,0 +1,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