package edu.uci.jforests.eval.ranking;

import edu.uci.jforests.eval.EvaluationMetric;
import edu.uci.jforests.sample.Sample;

public abstract class RankingEvaluationMetric extends EvaluationMetric {

	
	/** This gives the ordering of docuuments if they remained 
	 * in their original order
	 * @param numTargets how many documents we want in the ranking
	 * @param boundaries the query offsets 
	 * @return an array with the ranking offsets for each query
	 */
	public static double[] computeNaturalOrderScores(int numTargets, int[] boundaries)
	{
		final double[] naturalOrder = new double[numTargets];
		for(int q=0;q 

Ads help maintain this website.