public class FastDijkstraMarcher extends FastMarcherBase
Constructor and Description |
---|
FastDijkstraMarcher(int dataSize,
FastMarcherUtility utility)
Creates a FastRadialMarcher object for a given data size, and uses the
supplied utility object to connect to data for finding neighbours and
computing distances
|
Modifier and Type | Method and Description |
---|---|
void |
setSpeeds(double[] speed)
Assigns a vector of 'speeds' associated with each node.
|
clear, createDistanceHeap, getDistance, getDistanceHeap, getFarthest, getVoronoi, initializeArrays, march, march, march, march, reset, setDistance, setDistanceHeap, setVoronoi, startmarch, startmarch, step
public FastDijkstraMarcher(int dataSize, FastMarcherUtility utility)
public void setSpeeds(double[] speed)
distance[node2] = distance[node1] +
dist(node1,node2)*(speed[node1]+speed[node2])/2
speed=null
, the speed array is cleared, and all speeds are
assumed to be 1.