Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SparseRandomProjection ¶
type SparseRandomProjection struct {
// contains filtered or unexported fields
}
func New ¶
func New(dimension, numOfHashes, ratio int) *SparseRandomProjection
func (*SparseRandomProjection) GetHash ¶
func (srp *SparseRandomProjection) GetHash(vector []float64) []int
func (*SparseRandomProjection) GetHashSparse ¶
func (srp *SparseRandomProjection) GetHashSparse( data []index_value.Pair, ) []int
Click to show internal directories.
Click to hide internal directories.