Class FuzzyNode
- java.lang.Object
-
- dev.brachtendorf.jimagehash.datastructures.tree.binaryTree.Node
-
- dev.brachtendorf.jimagehash.datastructures.tree.binaryTreeFuzzy.FuzzyNode
-
- All Implemented Interfaces:
Serializable
public class FuzzyNode extends Node
A tree node saving references to it's children.- Since:
- 3.0.0
- Author:
- Kilian
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description doublelowerDistanceThe lower bound error this node might havedoubleuppderDistanceThe upper bound error this node might have-
Fields inherited from class dev.brachtendorf.jimagehash.datastructures.tree.binaryTree.Node
leftChild, rightChild
-
-
Constructor Summary
Constructors Constructor Description FuzzyNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodecreateChild(boolean left)Create and set a child of the current nodevoidsetNodeBounds(double distance)Refresh the node's the upper and lower bound error.StringtoString()
-
-
-
Method Detail
-
createChild
public Node createChild(boolean left)
Create and set a child of the current node- Overrides:
createChildin classNode- Parameters:
left- if true create the left child if false create the right child- Returns:
- the created node
-
setNodeBounds
public void setNodeBounds(double distance)
Refresh the node's the upper and lower bound error. This method should be called when ever a hash was added to this node. The bounds will be adapted correctly by this method.- Parameters:
distance- the distance of the hash added to this node
-
-