Documentation ¶
Index ¶
Constants ¶
View Source
const SP_ITERATIONS = 100
View Source
const SP_MAX_DISTANCE = 2048
View Source
const SP_RADIUS = 512
Variables ¶
This section is empty.
Functions ¶
func ComputeFrechetDistance ¶
Compute the Frechet distance between two paths. Paths are represented by the sequence of points along the path. We assume straight
line between successive points.
func SPMetric ¶
func SPMetric(a NodePathsGraph, b NodePathsGraph, prefix string, showA bool) (float64, float64, float64)
Types ¶
type GraphPath ¶
func GetClosestPath ¶
func GetClosestPath(graph NodePathsGraph, path []common.Point, radius float64) (*GraphPath, float64)
Find the path in graph with minimum Frechet distance to the given path, along with the associated Frechet distance.
type NodePathsGraph ¶
func ReadNodePathsGraph ¶
func ReadNodePathsGraph(fname string) (NodePathsGraph, error)
func (NodePathsGraph) GetShortestPath ¶
Click to show internal directories.
Click to hide internal directories.