C# Class natix.SimilaritySearch.NeighborhoodHash

Inheritance: BasicIndex
Datei anzeigen Open project: sadit/natix Class Usage Examples

Public Properties

Property Type Description
CountSymbolBits int
NeighborhoodExpansion int
R Index
SymbolsPerHash int
hashTable List>.Dictionary

Public Methods

Method Description
BubbleSort ( int seq ) : void
Build ( MetricDB db, int symbolsPerHash ) : void
Build ( MetricDB db, int symbolsPerHash, int neighborhoodExpansion, Random rand ) : void
EncodeKnr ( int seq ) : long
FetchPostingLists ( List rankedList, int start ) : IEnumerable>
InternalSearchKNN ( object q, IResult res, IEnumerable postingLists, HashSet evaluated ) : void
Load ( BinaryReader Input ) : void
NeighborhoodHash ( ) : System
RankRefs ( object q ) : List
Save ( BinaryWriter Output ) : void
SearchKNN ( object q, int knn, IResult res ) : IResult

Private Methods

Method Description
countBits ( int numrefs ) : int

Method Details

BubbleSort() public static method

public static BubbleSort ( int seq ) : void
seq int
return void

Build() public method

public Build ( MetricDB db, int symbolsPerHash ) : void
db MetricDB
symbolsPerHash int
return void

Build() public method

public Build ( MetricDB db, int symbolsPerHash, int neighborhoodExpansion, Random rand ) : void
db MetricDB
symbolsPerHash int
neighborhoodExpansion int
rand System.Random
return void

EncodeKnr() public method

public EncodeKnr ( int seq ) : long
seq int
return long

FetchPostingLists() public method

public FetchPostingLists ( List rankedList, int start ) : IEnumerable>
rankedList List
start int
return IEnumerable>

InternalSearchKNN() public method

public InternalSearchKNN ( object q, IResult res, IEnumerable postingLists, HashSet evaluated ) : void
q object
res IResult
postingLists IEnumerable
evaluated HashSet
return void

Load() public method

public Load ( BinaryReader Input ) : void
Input System.IO.BinaryReader
return void

NeighborhoodHash() public method

public NeighborhoodHash ( ) : System
return System

RankRefs() public method

public RankRefs ( object q ) : List
q object
return List

Save() public method

public Save ( BinaryWriter Output ) : void
Output System.IO.BinaryWriter
return void

SearchKNN() public method

public SearchKNN ( object q, int knn, IResult res ) : IResult
q object
knn int
res IResult
return IResult

Property Details

CountSymbolBits public_oe property

public int CountSymbolBits
return int

NeighborhoodExpansion public_oe property

public int NeighborhoodExpansion
return int

R public_oe property

public Index R
return Index

SymbolsPerHash public_oe property

public int SymbolsPerHash
return int

hashTable public_oe property

public Dictionary> hashTable
return List>.Dictionary