C# Класс natix.SimilaritySearch.BinPerms

The binary encoded permutations (BriefPermutations) index
Наследование: Perms
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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