StatRank (version 0.0.6)

Evaluation.NDCG: Calculates the Normalized Discounted Cumluative Gain

Description

Calculates the Normalized Discounted Cumluative Gain

Usage

Evaluation.NDCG(EstimatedRank, RelevanceLevel)

Arguments

EstimatedRank
estimated ranking
RelevanceLevel
score for the document

Value

The NDCG for this estimation and relevance level

Examples

Run this code
EstimatedRank <- scramble(1:10)
RelevanceLevel <- runif(10)
Evaluation.NDCG(EstimatedRank, RelevanceLevel)

Run the code above in your browser using DataLab