Class ReciprocalShortestPathLengthGridSearch<U>
java.lang.Object
es.uam.eps.ir.relison.grid.sna.pair.ReciprocalShortestPathLengthGridSearch<U>
- Type Parameters:
U- type of the users.
- All Implemented Interfaces:
PairMetricGridSearch<U>
public class ReciprocalShortestPathLengthGridSearch<U> extends java.lang.Object implements PairMetricGridSearch<U>
Grid search for the Reciprocal Shortest Path Length metric.
- See Also:
ReciprocalShortestPathLength
-
Constructor Summary
Constructors Constructor Description ReciprocalShortestPathLengthGridSearch() -
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.
-
Constructor Details
-
ReciprocalShortestPathLengthGridSearch
public ReciprocalShortestPathLengthGridSearch()
-
-
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:PairMetricGridSearchObtains the different metrics for pairs of nodes to compute in a grid.- Specified by:
gridin interfacePairMetricGridSearch<U>- Parameters:
grid- the grid for the metricdistCalc- a distance calculator.- Returns:
- a map containing suppliers for the metrics, indexed by name.
-
grid
Description copied from interface:PairMetricGridSearchObtains the different metrics for pairs of nodes to compute in a grid.- Specified by:
gridin interfacePairMetricGridSearch<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.
-