C# Class natix.SimilaritySearch.LSC

Abstract class for locality sensitive hashing
Inheritance: BasicIndex
Afficher le fichier Open project: sadit/natix Class Usage Examples

Méthodes publiques

Свойство Type Description
DEFAULT_QUERY_EXPANSION int

Protected Properties

Свойство Type Description
H ushort[]
Seq Sequence

Méthodes publiques

Méthode Description
Build ( MetricDB db, int sampleSize, SequenceBuilder seq_builder = null, object>.Func get_item = null ) : void
ComputeHash ( object u ) : int
GetCandidates ( int hash, HashSet cand, int expansion = -1 ) : void
GetSeq ( ) : Sequence
LSC ( ) : System

Constructor

Load ( BinaryReader Input ) : void
Save ( BinaryWriter Output ) : void
SearchKNN ( object q, int K, IResult R ) : IResult
SearchKNNExpansion ( object q, IResult R, int expansion ) : void

Method Details

Build() public méthode

public Build ( MetricDB db, int sampleSize, SequenceBuilder seq_builder = null, object>.Func get_item = null ) : void
db MetricDB
sampleSize int
seq_builder SequenceBuilder
get_item object>.Func
Résultat void

ComputeHash() public abstract méthode

public abstract ComputeHash ( object u ) : int
u object
Résultat int

GetCandidates() public méthode

public GetCandidates ( int hash, HashSet cand, int expansion = -1 ) : void
hash int
cand HashSet
expansion int
Résultat void

GetSeq() public méthode

public GetSeq ( ) : Sequence
Résultat Sequence

LSC() public méthode

Constructor
public LSC ( ) : System
Résultat System

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

public SearchKNN ( object q, int K, IResult R ) : IResult
q object
K int
R IResult
Résultat IResult

SearchKNNExpansion() public méthode

public SearchKNNExpansion ( object q, IResult R, int expansion ) : void
q object
R IResult
expansion int
Résultat void

Property Details

DEFAULT_QUERY_EXPANSION public_oe static_oe property

public static int DEFAULT_QUERY_EXPANSION
Résultat int

H protected_oe property

Matrix. One vector per LSH function
protected ushort[] H
Résultat ushort[]

Seq protected_oe property

protected Sequence Seq
Résultat Sequence