org.ddogleg.nn.alg
Class StandardKdTreeSearchNTests
- java.lang.Object
-
- org.ddogleg.nn.alg.StandardKdTreeSearchNTests
-
- Direct Known Subclasses:
- TestKdTreeSearchNBbf, TestKdTreeSearchNStandard
public abstract class StandardKdTreeSearchNTests extends java.lang.ObjectStandard tests for implementations ofKdTreeSearchN.
-
-
Constructor Summary
Constructors Constructor and Description StandardKdTreeSearchNTests()
-
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 correctvoidcheckDuplicates()See of it can handle duplicate values correctlyabstract KdTreeSearchNcreateAlg()Creates a KdTreeSearch which will produce optimal resultsstatic KdTreecreateTreeDuplicates()voidfindClosest_basic_1()Try several searches and see if they all produce good results.voidfindClosest_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 leafvoidrandomTests()Randomly generate several searches and check the result
-
-
-
Method Detail
-
createAlg
public abstract KdTreeSearchN createAlg()
Creates a KdTreeSearch which will produce optimal results
-
findClosest_basic_1
public void findClosest_basic_1()
Try several searches and see if they all produce good results. Just fine the nearest-neighbor
-
findClosest_nullLeaf
public void findClosest_nullLeaf()
See if it can handle a null leaf
-
randomTests
public void randomTests()
Randomly generate several searches and check the result
-
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
-
checkDuplicates
public void checkDuplicates()
See of it can handle duplicate values correctly
-
createTreeDuplicates
public static KdTree createTreeDuplicates()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG