Improve @param docs for Database::compact()
[xapian.git] / xapian-letor / evalmetric.cc
blobabc51e796ab9ac74b184cc35d67ad77fbf00600d
1 /* evalmetric.h: The abstract evaluation score file.
3 * Copyright (C) 2012 Parth Gupta
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
18 * USA
21 #include <evalmetric.h>
23 namespace Xapian {
25 EvalMetric::EvalMetric() {
28 /* override this in the sub-class like MAP, NDCG, MRR, etc*/
29 double
30 EvalMetric::score(const Xapian::RankList & /*rl*/) {
31 return 1.0;