/** * Constructor. * * @param cutoff maximum length of evaluated recommendation lists * @param relModel relevance model */ public NDCG(int cutoff, NDCGRelevanceModel<U, I> relModel) { this.relModel = relModel; this.cutoff = cutoff; this.disc = new LogarithmicDiscountModel(); }