dcg ( scores -- dcg )
Statistics

Prev:Computing cumulative sequences
Next:ndcg ( scores -- ndcg )


Vocabulary
math.statistics

Inputs
scoresa sequence


Outputs
dcga number


Word description
Calculates the discounted cumulative gain from a list of scores. The discounted cumulative gain can be used to compare two lists of results against each other given scores for each of the results.

See https://en.wikipedia.org/wiki/Discounted_cumulative_gain

See also
ndcg

Definition