mtree

package
v0.0.0-...-0b5b0ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashDist

type HashDist struct {
	// contains filtered or unexported fields
}

func (HashDist) Len

func (hd HashDist) Len() int

func (HashDist) Less

func (hd HashDist) Less(i, j int) bool

func (HashDist) Swap

func (hd HashDist) Swap(i, j int)

type MTree

type MTree struct {
	// contains filtered or unexported fields
}

func New

func New() *MTree

func (*MTree) Add

func (tree *MTree) Add(hash imhash.ImageHash) int64

func (*MTree) SearchClosest

func (tree *MTree) SearchClosest(hash imhash.ImageHash, d int) (found bool, closestHash imhash.ImageHash, dist int, nodesVisited int64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL