public class SampleGridRenderer extends Object
ZSampleGrid
,
AccumulativeGridSampler
Modifier and Type | Class and Description |
---|---|
static class |
SampleGridRenderer.WTWD
The default TZ data we keep for each sample: Weighted Time and Walk Distance
For now we keep all possible values in the vector; we may want to remove the values that will
not be used in the process (for example # of boardings).
|
static class |
SampleGridRenderer.WTWDAccumulativeMetric
Any given sample is weighted according to the inverse of the squared normalized distance
+ 1 to the grid sample.
|
Constructor and Description |
---|
SampleGridRenderer(Graph graph) |
Modifier and Type | Method and Description |
---|---|
ZSampleGrid<SampleGridRenderer.WTWD> |
getSampleGrid(SampleGridRequest spgRequest,
RoutingRequest sptRequest) |
static void |
sampleSPT(ShortestPathTree spt,
ZSampleGrid<SampleGridRenderer.WTWD> sampleGrid,
double gridSizeMeters,
double offRoadDistanceMeters,
double offRoadWalkSpeedMps,
double maxWalkDistance,
int maxTimeSec,
double cosLat)
Sample a SPT using a SPTWalker and an AccumulativeGridSampler.
|
public SampleGridRenderer(Graph graph)
public ZSampleGrid<SampleGridRenderer.WTWD> getSampleGrid(SampleGridRequest spgRequest, RoutingRequest sptRequest)
spgRequest
- sptRequest
- public static void sampleSPT(ShortestPathTree spt, ZSampleGrid<SampleGridRenderer.WTWD> sampleGrid, double gridSizeMeters, double offRoadDistanceMeters, double offRoadWalkSpeedMps, double maxWalkDistance, int maxTimeSec, double cosLat)
Copyright © 2019. All rights reserved.