Class PairMetricSelector<U>

java.lang.Object
es.uam.eps.ir.relison.grid.sna.pair.PairMetricSelector<U>
Type Parameters:
U - type of the users.

public class PairMetricSelector<U>
extends java.lang.Object
Class that translates from a grid to the different pair metrics.
  • Constructor Summary

    Constructors 
    Constructor Description
    PairMetricSelector()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.lang.String,​GraphMetricFunction<U>> getGraphMetrics​(java.lang.String metric, Grid grid)
    Obtains the aggregate variants of a given pair metric, given the parameters selected in a grid.
    java.util.Map<java.lang.String,​java.util.function.Supplier<GraphMetric<U>>> getGraphMetrics​(java.lang.String metric, Grid grid, DistanceCalculator<U> distCalc)
    Obtains the aggregate variants of a given pair metric, given the parameters selected in a grid.
    PairMetricGridSearch<U> getGridSearch​(java.lang.String metric)
    Obtains the grid configurator for a metric.
    java.util.Map<java.lang.String,​PairMetricFunction<U>> getMetrics​(java.lang.String metric, Configurations confs)
    Obtains the different variants of a given pair metric depending on the parameters selected in a grid.
    java.util.Map<java.lang.String,​PairMetricFunction<U>> getMetrics​(java.lang.String name, Grid grid)
    Obtains the different variants of a given pair metric depending on the parameters selected in a grid.
    java.util.Map<java.lang.String,​java.util.function.Supplier<PairMetric<U>>> getMetrics​(java.lang.String name, Grid grid, DistanceCalculator<U> distcalc)
    Obtains the different variants of a given pair metric depending on the parameters selected in a grid.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getGridSearch

      public PairMetricGridSearch<U> getGridSearch​(java.lang.String metric)
      Obtains the grid configurator for a metric.
      Parameters:
      metric - the name of the metric.
      Returns:
      the grid configurator for the metric if it exists, null otherwise.
    • getMetrics

      public java.util.Map<java.lang.String,​java.util.function.Supplier<PairMetric<U>>> getMetrics​(java.lang.String name, Grid grid, DistanceCalculator<U> distcalc)
      Obtains the different variants of a given pair metric depending on the parameters selected in a grid.
      Parameters:
      name - the name of the metric.
      grid - the grid containing the different parameters.
      distcalc - a distance calculator.
      Returns:
      a map containing the different metric suppliers.
    • getMetrics

      public java.util.Map<java.lang.String,​PairMetricFunction<U>> getMetrics​(java.lang.String name, Grid grid)
      Obtains the different variants of a given pair metric depending on the parameters selected in a grid.
      Parameters:
      name - the name of the metric.
      grid - the grid containing the different parameters.
      Returns:
      a map containing the different metric suppliers, which work given a distance calculator
    • getGraphMetrics

      public java.util.Map<java.lang.String,​java.util.function.Supplier<GraphMetric<U>>> getGraphMetrics​(java.lang.String metric, Grid grid, DistanceCalculator<U> distCalc)
      Obtains the aggregate variants of a given pair metric, given the parameters selected in a grid.
      Parameters:
      metric - the name of the metric.
      grid - the grid containing the different parameters.
      distCalc - a distance calculator.
      Returns:
      a map, indexed by metric name, containing the different variants of the metric selected in the grid.
    • getGraphMetrics

      public java.util.Map<java.lang.String,​GraphMetricFunction<U>> getGraphMetrics​(java.lang.String metric, Grid grid)
      Obtains the aggregate variants of a given pair metric, given the parameters selected in a grid.
      Parameters:
      metric - the name of the metric.
      grid - the grid containing the different parameters.
      Returns:
      a map, indexed by metric name, containing the different variants of the metric selected in the grid.
    • getMetrics

      public java.util.Map<java.lang.String,​PairMetricFunction<U>> getMetrics​(java.lang.String metric, Configurations confs)
      Obtains the different variants of a given pair metric depending on the parameters selected in a grid.
      Parameters:
      metric - the name of the metric.
      confs - the configurations.
      Returns:
      a map containing the different metric suppliers, which work given a distance calculator.