Documentation ¶
Index ¶
- type Config
- type Hasher
- func (lshIndex *Hasher) Dump() ([]byte, error)
- func (lshIndex *Hasher) Generate(convMean, convStd blas64.Vector) error
- func (lshIndex *Hasher) GetDist(lv, rv blas64.Vector) (float64, bool)
- func (lshIndex *Hasher) GetHashes(vec blas64.Vector) map[int]uint64
- func (lshIndex *Hasher) Load(inp []byte) error
- type HasherInstance
- type Plane
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IsAngularDistance int NPermutes int NPlanes int BiasMultiplier float64 DistanceThrsh float64 Dims int }
Config holds all needed constants for creating the Hasher instance
type Hasher ¶
type Hasher struct { Config Config Instances []HasherInstance Bias float64 MeanVec blas64.Vector // contains filtered or unexported fields }
Hasher holds N_PERMUTS number of HasherInstance instances
type HasherInstance ¶
type HasherInstance struct {
Planes []Plane
}
HasherInstance holds data for local sensetive hashing algorithm
Click to show internal directories.
Click to hide internal directories.