Example #1
0
func NewEuclidLSH(hashNum int) *EuclidLSH {
	return &EuclidLSH{
		lshs: bit.NewArray(hashNum),

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