Exemplo n.º 1
0
func NewEuclidLSH(hashNum int) *EuclidLSH {
	return &EuclidLSH{
		lshs: bit.NewArray(hashNum),

		cosTable: cosTable(hashNum),
	}
}
Exemplo n.º 2
0
func NewLSH(bitNum int) *LSH {
	return &LSH{
		data: bit.NewArray(bitNum),
	}
}
Exemplo n.º 3
0
func NewMinhash(bitNum int) *Minhash {
	return &Minhash{
		data: bit.NewArray(bitNum),
	}
}