Class ExpandedFOAFCountGridSearch<U>

java.lang.Object
es.uam.eps.ir.relison.grid.sna.pair.ExpandedFOAFCountGridSearch<U>
Type Parameters:
U - type of the users
All Implemented Interfaces:
PairMetricGridSearch<U>

public class ExpandedFOAFCountGridSearch<U>
extends java.lang.Object
implements PairMetricGridSearch<U>
Grid for the expanded number of common neighbors of a pair of users, weighted by the number of times a neighbor appears.
See Also:
ExpandedNeighborCountedOverlap
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private static java.lang.String ORIGIN
    Identifier for the parameter indicating whether we take the distance two neighborhood of the first or the second node.
    private static java.lang.String USEL
    Identifier for the origin neighborhood selection
    private static java.lang.String VSEL
    Identifier for the destination neighborhood selection
  • Constructor Summary

    Constructors 
    Constructor Description
    ExpandedFOAFCountGridSearch()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.lang.String,​PairMetricFunction<U>> grid​(Grid grid)
    Obtains the different metrics for pairs of nodes to compute in a grid.
    java.util.Map<java.lang.String,​java.util.function.Supplier<PairMetric<U>>> grid​(Grid grid, DistanceCalculator<U> distCalc)
    Obtains the different metrics for pairs of nodes to compute in a grid.

    Methods inherited from class java.lang.Object

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

    • USEL

      private static final java.lang.String USEL
      Identifier for the origin neighborhood selection
      See Also:
      Constant Field Values
    • VSEL

      private static final java.lang.String VSEL
      Identifier for the destination neighborhood selection
      See Also:
      Constant Field Values
    • ORIGIN

      private static final java.lang.String ORIGIN
      Identifier for the parameter indicating whether we take the distance two neighborhood of the first or the second node.
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details

    • grid

      public java.util.Map<java.lang.String,​java.util.function.Supplier<PairMetric<U>>> grid​(Grid grid, DistanceCalculator<U> distCalc)
      Description copied from interface: PairMetricGridSearch
      Obtains the different metrics for pairs of nodes to compute in a grid.
      Specified by:
      grid in interface PairMetricGridSearch<U>
      Parameters:
      grid - the grid for the metric
      distCalc - a distance calculator.
      Returns:
      a map containing suppliers for the metrics, indexed by name.
    • grid

      public java.util.Map<java.lang.String,​PairMetricFunction<U>> grid​(Grid grid)
      Description copied from interface: PairMetricGridSearch
      Obtains the different metrics for pairs of nodes to compute in a grid.
      Specified by:
      grid in interface PairMetricGridSearch<U>
      Parameters:
      grid - the grid for the metric
      Returns:
      a map containing suppliers for the metrics which depend on a distance calculator, indexed by name.