Пример #1
0
func NewEuclidLSH(hashNum int) *EuclidLSH {
	return &EuclidLSH{
		lshs: bit.NewArray(hashNum),

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