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 WeightApproximator
public void setTo(int to)
setTo
in interface WeightApproximator
public WeightApproximator reverse()
WeightApproximator
reverse
in interface WeightApproximator
public void triggerActiveLandmarkRecalculation()
Copyright © 2012–2019. All rights reserved.