org.ddogleg.nn.alg
Class StandardKdTreeSearch1Tests
- java.lang.Object
-
- org.ddogleg.nn.alg.StandardKdTreeSearch1Tests
-
- Direct Known Subclasses:
- TestKdTreeSearch1Bbf, TestKdTreeSearch1Standard
public abstract class StandardKdTreeSearch1Tests extends java.lang.ObjectStandard tests for implemntations ofKdTreeSearch1.
-
-
Constructor Summary
Constructors Constructor and Description StandardKdTreeSearch1Tests()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidcheckDistance()Make sure the distance it returns is correctabstract KdTreeSearch1createAlg()Creates a KdTreeSearch which will produce optimal resultsstatic KdTreecreateTreeA()static KdTreecreateTreeWithNull()voidfindClosest_basic()Try several searches and see if they all produce good resultsvoidfindClosest_empty()The tree is empty and it should always failvoidfindClosest_leaf()The tree is a leaf and should always return the same resultvoidfindClosest_maxDistance()See if max distance is being respectedvoidfindClosest_nullLeaf()See if it can handle a null leaf
-
-
-
Method Detail
-
createAlg
public abstract KdTreeSearch1 createAlg()
Creates a KdTreeSearch which will produce optimal results
-
findClosest_basic
public void findClosest_basic()
Try several searches and see if they all produce good results
-
createTreeA
public static KdTree createTreeA()
-
findClosest_nullLeaf
public void findClosest_nullLeaf()
See if it can handle a null leaf
-
createTreeWithNull
public static KdTree createTreeWithNull()
-
findClosest_empty
public void findClosest_empty()
The tree is empty and it should always fail
-
findClosest_leaf
public void findClosest_leaf()
The tree is a leaf and should always return the same result
-
findClosest_maxDistance
public void findClosest_maxDistance()
See if max distance is being respected
-
checkDistance
public void checkDistance()
Make sure the distance it returns is correct
-
-
DataMelt 3.0 © DataMelt by jWork.ORG