java.lang.Object
es.uam.eps.ir.relison.links.data.letor.sampling.AbstractIndividualSampler<U>
es.uam.eps.ir.relison.links.data.letor.sampling.AllSampler<U>
Type Parameters:
U - type of the users.
All Implemented Interfaces:
IndividualSampler<U>

public class AllSampler<U>
extends AbstractIndividualSampler<U>
Samples the all the possible links (all links not included in the test set).
  • Field Summary

    Fields inherited from class es.uam.eps.ir.relison.links.data.letor.sampling.AbstractIndividualSampler

    graph
  • Constructor Summary

    Constructors 
    Constructor Description
    AllSampler​(Graph<U> graph)
    Constructor.
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AllSampler

      public AllSampler​(Graph<U> graph)
      Constructor.
      Parameters:
      graph - the graph.
  • Method Details

    • sampleUsers

      public java.util.Set<U> sampleUsers​(U u, java.util.function.Predicate<U> filter)
      Description copied from interface: IndividualSampler
      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.