Class ShrinkingDiameterNeighborsGridSearch<U>
java.lang.Object
es.uam.eps.ir.relison.grid.sna.pair.ShrinkingDiameterNeighborsGridSearch<U>
- All Implemented Interfaces:
PairMetricGridSearch<U>
public class ShrinkingDiameterNeighborsGridSearch<U> extends java.lang.Object implements PairMetricGridSearch<U>
Grid for a metric that computes the reduction of the diameter in a network if a link is added.
We restrict distances to those between the neighbors of the users.
- See Also:
ShrinkingDiameterNeighbors
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ShrinkingDiameterNeighborsGridSearch()
-
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.
-
Field Details
-
USEL
private static final java.lang.String USELIdentifier for the origin neighborhood selection- See Also:
- Constant Field Values
-
VSEL
private static final java.lang.String VSELIdentifier for the destination neighborhood selection- See Also:
- Constant Field Values
-
-
Constructor Details
-
ShrinkingDiameterNeighborsGridSearch
public ShrinkingDiameterNeighborsGridSearch()
-
-
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 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:PairMetricGridSearch
Obtains the different metrics for pairs of nodes to compute in a grid.- Specified by:
grid
in 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.
-