Class Result<T>
- java.lang.Object
-
- dev.brachtendorf.jimagehash.datastructures.tree.Result<T>
-
- All Implemented Interfaces:
Comparable<Result<T>>
public class Result<T> extends Object implements Comparable<Result<T>>
Search result returned when querying the tree- Author:
- Kilian
-
-
Field Summary
Fields Modifier and Type Field Description doubledistanceThe hamming distance to the actual hash supplied during the searchdoublenormalizedHammingDistanceThe normalized hamming distance to the actual hash supplied during the searchTvalueValue saved at the leaf node
-
-
-
Field Detail
-
value
public T value
Value saved at the leaf node
-
distance
public double distance
The hamming distance to the actual hash supplied during the search
-
normalizedHammingDistance
public double normalizedHammingDistance
The normalized hamming distance to the actual hash supplied during the search
-
-
Constructor Detail
-
Result
public Result(T value, double distance, double normalizedDistance)
-
-
Method Detail
-
compareTo
public int compareTo(Result<T> o)
- Specified by:
compareToin interfaceComparable<T>
-
-