Normalized Discounted Cumulative Gain (NDCG)

Returns the Normalized Discounted Cumulative Gain

You are now following this Submission

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 .

Categories

Find more on Visualization and Data Export in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Adds illustrative image with the used equation

1.0.0.0