Fraction of the true k nearest neighbours that the approximate search
found, averaged over queries. Order within a row does not matter.
Arguments
- truth
Integer matrix. Queries x k true neighbour indices, e.g. the
idxelement from an ExhaustiveIndex.- approx
Integer matrix. Queries x k approximate neighbour indices.
- k
Optional integer. Only the first
kcolumns of both are compared. Defaults toncol(approx).
