Class GlobalCommunityMetricSelector<U>
java.lang.Object
es.uam.eps.ir.relison.grid.sna.comm.global.GlobalCommunityMetricSelector<U>
- Type Parameters:
U
- Type of the users
public class GlobalCommunityMetricSelector<U>
extends java.lang.Object
Class that translates from a grid to the different contact recommendation algorithns.
-
Constructor Summary
Constructors Constructor Description GlobalCommunityMetricSelector()
-
Method Summary
Modifier and Type Method Description GlobalCommunityMetricGridSearch<U>
getGridSearch(java.lang.String metric)
Obtains a grid search for the metric.java.util.Map<java.lang.String,java.util.function.Supplier<CommunityMetric<U>>>
getMetrics(java.lang.String metric, Grid grid)
Obtains the different variants of a given community metric depending on the parameters selected in a grid.
-
Constructor Details
-
GlobalCommunityMetricSelector
public GlobalCommunityMetricSelector()
-
-
Method Details
-
getGridSearch
Obtains a grid search for the metric.- Parameters:
metric
- the name of the metric.- Returns:
- the grid search for the metric if exists, null otherwise.
-
getMetrics
public java.util.Map<java.lang.String,java.util.function.Supplier<CommunityMetric<U>>> getMetrics(java.lang.String metric, Grid grid)Obtains the different variants of a given community metric depending on the parameters selected in a grid.- Parameters:
metric
- the name of the metric.grid
- the grid containing the different parameters.- Returns:
- a map containing the different metric suppliers.
-