Documentation ¶
Index ¶
- type DensifiedMinhash
- func (dm *DensifiedMinhash) GetHash(indices []int, data []float64, binIds []int) []int
- func (dm *DensifiedMinhash) GetHashEasy(binIds []int, data []index_value.Pair, topK int) []int
- func (dm *DensifiedMinhash) GetHashEasyDense(binIds []int, data []float64, topK int) []int
- func (dm *DensifiedMinhash) GetMap(n int) []int
- func (dm *DensifiedMinhash) GetRandDoubleHash(binId, count int) int
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
Click to show internal directories.
Click to hide internal directories.