public class LMApproximator extends Object implements WeightApproximator
| Constructor and Description |
|---|
LMApproximator(Graph graph,
int maxBaseNodes,
LandmarkStorage lms,
int activeCount,
double factor,
boolean reverse) |
| Modifier and Type | Method and Description |
|---|---|
double |
approximate(int queryNode) |
WeightApproximator |
reverse()
Makes a 'reverse' copy of itself to make it possible using the two objects independent e.g.
|
LMApproximator |
setEpsilon(double epsilon)
Increase approximation with higher epsilon
|
void |
setTo(int to) |
String |
toString() |
void |
triggerActiveLandmarkRecalculation()
This method forces a lazy recalculation of the active landmark set e.g.
|
public LMApproximator(Graph graph, int maxBaseNodes, LandmarkStorage lms, int activeCount, double factor, boolean reverse)
public LMApproximator setEpsilon(double epsilon)
public double approximate(int queryNode)
approximate in interface WeightApproximatorpublic void setTo(int to)
setTo in interface WeightApproximatorpublic WeightApproximator reverse()
WeightApproximatorreverse in interface WeightApproximatorpublic void triggerActiveLandmarkRecalculation()
Copyright © 2012–2018. All rights reserved.