Interface IndividualSampler<U>

Type Parameters:
U - type of the users.
All Known Implementing Classes:
AbstractIndividualSampler, AllSampler, DistanceTwoIndividualSampler, DistanceTwoLinkPredictionIndividualSampler, LinkPredictionSampler, RecommenderIndividualSampler

public interface IndividualSampler<U>
Obtains a sample of users starting from a single user.
  • Method Summary

    Modifier and Type Method Description
    java.util.Set<U> sampleUsers​(U u, java.util.function.Predicate<U> filter)
    Given a user, obtains the sample.
  • Method Details

    • sampleUsers

      java.util.Set<U> sampleUsers​(U u, java.util.function.Predicate<U> filter)
      Given a user, obtains the sample.
      Parameters:
      u - the parameter.
      filter - a filter for the sample
      Returns:
      the set of sampled users, with their relevance / weight.