public class LMApproximator extends Object implements WeightApproximator
Constructor and Description |
---|
LMApproximator(Graph graph,
Weighting weighting,
int maxBaseNodes,
LandmarkStorage lms,
int activeCount,
double factor,
boolean reverse) |
Modifier and Type | Method and Description |
---|---|
double |
approximate(int v) |
double |
getSlack() |
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 t) |
String |
toString() |
void |
triggerActiveLandmarkRecalculation()
This method forces a lazy recalculation of the active landmark set e.g.
|
public LMApproximator(Graph graph, Weighting weighting, int maxBaseNodes, LandmarkStorage lms, int activeCount, double factor, boolean reverse)
public LMApproximator setEpsilon(double epsilon)
public double approximate(int v)
approximate
in interface WeightApproximator
public void setTo(int t)
setTo
in interface WeightApproximator
public WeightApproximator reverse()
WeightApproximator
reverse
in interface WeightApproximator
public double getSlack()
getSlack
in interface WeightApproximator
public void triggerActiveLandmarkRecalculation()
Copyright © 2012–2020. All rights reserved.