Normalized Discounted Cumulative Gain (NDCG)
Version 1.1.0.0 (2.77 KB) by
Jan Motl
Returns the Normalized Discounted Cumulative Gain
A straightforward implementation of NDCG, a measure of ranking quality, which closely follows the definition from https://en.wikipedia.org/wiki/Discounted_cumulative_gain.
Cite As
Jan Motl (2026). Normalized Discounted Cumulative Gain (NDCG) (https://nl.mathworks.com/matlabcentral/fileexchange/65570-normalized-discounted-cumulative-gain-ndcg), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Visualization and Data Export in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
