Click or drag to resize
Accord.NET (logo)

VPTreeBase< TPoint, TNode> Class

Base class for Vantage-Point Trees.
Inheritance Hierarchy
System.Object
  Accord.Collections.BinaryTree<TNode>
    Accord.Collections.VPTreeBase<TPoint, TNode>
      Accord.Collections.VPTree<TPoint>
      Accord.Collections.VPTree<TPoint, TData>

Namespace:  Accord.Collections
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public class VPTreeBase<TPoint, TNode> : BinaryTree<TNode>, 
	IEnumerable
where TNode : new(), VPTreeNodeBase<TPoint, TNode>
Request Example View Source

Type Parameters

TPoint
The type for the position vector of each node.
TNode
The class type for the nodes of the tree.

The VPTreeBase< TPoint, TNode> type exposes the following members.

Constructors
  NameDescription
Public methodVPTreeBase<TPoint, TNode>
Initializes a new instance of the VPTreeBase< TPoint, TNode> class.
Top
Properties
  NameDescription
Public propertyDistance
Gets or set the distance function used to measure distances amongst points on this tree
Public propertyRadius
Gets or sets the radius of the nodes in the tree.
Public propertyRoot
Gets the root node of this tree.
(Inherited from BinaryTree<TNode>.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the tree.
(Inherited from BinaryTree<TNode>.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNearest(TPoint, Int32)
Retrieves a fixed point of nearest points to a given point.
Public methodNearest(TPoint, Int32, List<NodeDistance<TNode>>)
Retrieves a fixed point of nearest points to a given point.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTraverse
Traverse the tree using a tree traversal method. Can be iterated with a foreach loop.
(Inherited from BinaryTree<TNode>.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodSetEquals<TNode>
Compares two enumerables for set equality. Two enumerables are set equal if they contain the same elements, but not necessarily in the same order.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodTo<T>()Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
See Also