You are here

function recommender_top_similarity in Recommender API 6.3

Same name and namespace in other branches
  1. 6.2 recommender.module \recommender_top_similarity()
  2. 7.3 recommender.module \recommender_top_similarity()
  3. 7.4 recommender.module \recommender_top_similarity()

Return a list of items that are top similar with $id

Parameters

$app_name The $app_name for the depending modules:

$id usually the $node_id of the target item.:

$top_n how many similar items to return:

$test_func optional function to test whether an item satisfy some conditions:

Return value

an array of the most similar items to $id.

File

./recommender.module, line 104
Providing generic recommender system algorithms.

Code

function recommender_top_similarity($app_name, $id, $top_n, $test_func = NULL) {
  return _recommender_generic_top($app_name, $id, $top_n, '{recommender_similarity}');
}