dcg_score.RdHelper function for document-wise computation of ranked retrieval scores DCG, NDCG and LRAP. Implemented as in Annif https://github.com/NatLibFi/Annif/blob/master/annif/eval.py. Reference implementation of DCG to test against.
dcg_score(gold_vs_pred, limit = NULL)The numeric value of DCG.