public class ModelDistanceCheck extends Object implements DistanceCheck
DistanceCheck
that tests the distance against a
EstimatableModel
.Constructor and Description |
---|
ModelDistanceCheck(Model<Double,Boolean> model)
Construct using the given model.
|
Modifier and Type | Method and Description |
---|---|
boolean |
check(double distance)
Test the distance
|
Model<Double,Boolean> |
getModel() |
public ModelDistanceCheck(Model<Double,Boolean> model)
model
- the model to use in #check(double).public boolean check(double distance)
DistanceCheck
check
in interface DistanceCheck
distance
- the distance