Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CosineLsh ¶
type CosineLsh struct {
// contains filtered or unexported fields
}
CosineLsh is an implementation of Random projection LSH https://en.wikipedia.org/wiki/Locality-sensitive_hashing#Random_projection
func NewCosineLsh ¶
NewCosineLsh created an instance of Cosine LSH. dim is the number of dimensions of the input points (also the number of dimensions of each hyperplane) l is the number of hash tables, m is the number of hash values in each hash table.
type DistanceFunc ¶
DistanceFunc is a function for calculate distance between two vectors
type QueryResult ¶
QueryResult represent query result with distance to query point
Click to show internal directories.
Click to hide internal directories.