C# 클래스 natix.SimilaritySearch.BinPerms

The binary encoded permutations (BriefPermutations) index
상속: Perms
파일 보기 프로젝트 열기: sadit/natix

공개 프로퍼티들

프로퍼티 타입 설명
IndexHamming Index
MOD int
permcenter bool

공개 메소드들

메소드 설명
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

메소드 상세

BinPerms() 공개 메소드

Constructor
public BinPerms ( ) : System
리턴 System

Build() 공개 메소드

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
리턴 void

Build() 공개 메소드

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
리턴 void

Encode() 공개 메소드

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

Encode() 공개 메소드

Performs encoding of an object
public Encode ( object u ) : byte[]
u object
리턴 byte[]

GetDimLengthInBytes() 공개 메소드

The length of the dimension in bytes (vector's length in bytes of the bit string)
public GetDimLengthInBytes ( int invlen ) : int
invlen int
리턴 int

Load() 공개 메소드

public Load ( BinaryReader Input ) : void
Input System.IO.BinaryReader
리턴 void

Save() 공개 메소드

public Save ( BinaryWriter Output ) : void
Output System.IO.BinaryWriter
리턴 void

SearchKNN() 공개 메소드

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 ///
리턴 IResult

프로퍼티 상세

IndexHamming 공개적으로 프로퍼티

The name of the hamming index (external index)
public Index IndexHamming
리턴 Index

MOD 공개적으로 프로퍼티

The module
public int MOD
리턴 int

permcenter 공개적으로 프로퍼티

Indicates if the index will permute the center
public bool permcenter
리턴 bool