Click or drag to resize
Accord.NET (logo)

NodeDistanceTNode Structure

Node-distance pair.

Namespace:  Accord.Collections
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public struct NodeDistance<TNode> : IComparable<NodeDistance<TNode>>, 
	IEquatable<NodeDistance<TNode>>
where TNode : Object, IEquatable<TNode>
Request Example View Source

Type Parameters

TNode
The class type for the nodes of the tree.

The NodeDistanceTNode type exposes the following members.

Constructors
  NameDescription
Public methodNodeDistanceTNode
Creates a new NodeDistanceTNode.
Top
Properties
  NameDescription
Public propertyDistance
Gets the distance of the node from the query point.
Public propertyNode
Gets the node in this pair.
Top
Methods
  NameDescription
Public methodCompareTo(Object)
Compares this instance to another node, returning an integer indicating whether this instance has a distance that is less than, equal to, or greater than the other node's distance.
Public methodCompareTo(NodeDistanceTNode)
Compares this instance to another node, returning an integer indicating whether this instance has a distance that is less than, equal to, or greater than the other node's distance.
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(NodeDistanceTNode)
Determines whether the specified NodeDistanceTNode is equal to this instance.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the equality operator.
Public operatorStatic memberGreaterThan
Implements the greater than operator.
Public operatorStatic memberInequality
Implements the inequality operator.
Public operatorStatic memberLessThan
Implements the lesser than operator.
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 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 MethodToTOverloaded.
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