public class RoadDensityCalculator extends Object
| Constructor and Description |
|---|
RoadDensityCalculator(Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
static void |
calcRoadDensities(Graph graph,
BiConsumer<RoadDensityCalculator,EdgeIteratorState> edgeHandler,
int threads)
Loops over all edges of the graph and calls the given edgeHandler for each edge.
|
double |
calcRoadDensity(EdgeIteratorState edge,
double radius,
ToDoubleFunction<EdgeIteratorState> calcRoadFactor) |
public RoadDensityCalculator(Graph graph)
public static void calcRoadDensities(Graph graph, BiConsumer<RoadDensityCalculator,EdgeIteratorState> edgeHandler, int threads)
public double calcRoadDensity(EdgeIteratorState edge, double radius, ToDoubleFunction<EdgeIteratorState> calcRoadFactor)
radius - in meterscalcRoadFactor - weighting function. use this to define how different kinds of roads shall contribute to the calculated road densityCopyright © 2012–2022. All rights reserved.