Property | Type | Description | |
---|---|---|---|
IndexHamming | Index | ||
MOD | int | ||
permcenter | bool |
Method | Description | |
---|---|---|
BinPerms ( ) : System |
Constructor
|
|
Build ( MetricDB db, MetricDB refs, int maxcand = 1024, double mod = 0.5, bool permcenter = true, Perms idxperms = null ) : void |
The API Build method for BinPerms
|
|
Build ( MetricDB db, int num_refs, int maxcand = 1024, double mod = 0.5, bool permcenter = true ) : void | ||
Encode ( |
Encode an inverse permutation into an encoded bit-string
|
|
Encode ( object u ) : byte[] |
Performs encoding of an object
|
|
GetDimLengthInBytes ( int invlen ) : int |
The length of the dimension in bytes (vector's length in bytes of the bit string)
|
|
Load ( |
||
Save ( |
||
SearchKNN ( object q, int k ) : IResult |
KNN Search in the index
|
public Build ( MetricDB db, MetricDB refs, int maxcand = 1024, double mod = 0.5, bool permcenter = true, Perms idxperms = null ) : void | ||
db | MetricDB | |
refs | MetricDB | |
maxcand | int | |
mod | double | |
permcenter | bool | |
idxperms | Perms | |
return | void |
public Build ( MetricDB db, int num_refs, int maxcand = 1024, double mod = 0.5, bool permcenter = true ) : void | ||
db | MetricDB | |
num_refs | int | |
maxcand | int | |
mod | double | |
permcenter | bool | |
return | void |
public Encode ( |
||
inv |
/// Inverse permutation
/// A |
|
return | byte[] |
public GetDimLengthInBytes ( int invlen ) : int | ||
invlen | int | |
return | int |
public Load ( |
||
Input | ||
return | void |
public Save ( |
||
Output | ||
return | void |
public SearchKNN ( object q, int k ) : IResult | ||
q | object | /// The query object /// |
k | int |
/// The number of nearest neighbors
/// A |
return | IResult |