Learn R Programming

StatRank (version 0.0.6)

Evaluation.AveragePrecision: Calculates the Average Precision

Description

Calculates the Average Precision

Usage

Evaluation.AveragePrecision(EstimatedRank, RelevanceLevel)

Arguments

EstimatedRank
estimated ranking
RelevanceLevel
score for the document

Value

The AP for this estimation and relevance level

Examples

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

Run the code above in your browser using DataLab