C# Class natix.SimilaritySearch.BinPerms

The binary encoded permutations (BriefPermutations) index
Inheritance: Perms
Afficher le fichier Open project: sadit/natix

Méthodes publiques

Свойство Type Description
IndexHamming Index
MOD int
permcenter bool

Méthodes publiques

Méthode 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 ( Int16 inv ) : byte[]

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 ( BinaryReader Input ) : void
Save ( BinaryWriter Output ) : void
SearchKNN ( object q, int k ) : IResult

KNN Search in the index

Method Details

BinPerms() public méthode

Constructor
public BinPerms ( ) : System
Résultat System

Build() public méthode

The API Build method for BinPerms
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
Résultat void

Build() public méthode

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
Résultat void

Encode() public méthode

Encode an inverse permutation into an encoded bit-string
public Encode ( Int16 inv ) : byte[]
inv System.Int16 /// Inverse permutation /// A ///
Résultat byte[]

Encode() public méthode

Performs encoding of an object
public Encode ( object u ) : byte[]
u object
Résultat byte[]

GetDimLengthInBytes() public méthode

The length of the dimension in bytes (vector's length in bytes of the bit string)
public GetDimLengthInBytes ( int invlen ) : int
invlen int
Résultat int

Load() public méthode

public Load ( BinaryReader Input ) : void
Input System.IO.BinaryReader
Résultat void

Save() public méthode

public Save ( BinaryWriter Output ) : void
Output System.IO.BinaryWriter
Résultat void

SearchKNN() public méthode

KNN Search in the index
public SearchKNN ( object q, int k ) : IResult
q object /// The query object ///
k int /// The number of nearest neighbors /// A ///
Résultat IResult

Property Details

IndexHamming public_oe property

The name of the hamming index (external index)
public Index IndexHamming
Résultat Index

MOD public_oe property

The module
public int MOD
Résultat int

permcenter public_oe property

Indicates if the index will permute the center
public bool permcenter
Résultat bool