densified_minhash

package
v0.0.0-...-eb36bdb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DensifiedMinhash

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

func New

func New(numHashes, numOfBitsToHash int) *DensifiedMinhash

func (*DensifiedMinhash) GetHash

func (dm *DensifiedMinhash) GetHash(
	indices []int,
	data []float64,
	binIds []int,
) []int

func (*DensifiedMinhash) GetHashEasy

func (dm *DensifiedMinhash) GetHashEasy(
	binIds []int,
	data []index_value.Pair,
	topK int,
) []int

func (*DensifiedMinhash) GetHashEasyDense

func (dm *DensifiedMinhash) GetHashEasyDense(
	binIds []int,
	data []float64,
	topK int,
) []int

TODO: avoid code duplication

func (*DensifiedMinhash) GetMap

func (dm *DensifiedMinhash) GetMap(n int) []int

func (*DensifiedMinhash) GetRandDoubleHash

func (dm *DensifiedMinhash) GetRandDoubleHash(binId, count int) int

Jump to

Keyboard shortcuts

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