C# Class natix.SimilaritySearch.LSH_FloatVectorL2

LSH for Binary hamming space
Inheritance: LSH
Afficher le fichier Open project: sadit/natix Class Usage Examples

Méthodes publiques

Méthode Description
ComputeHash ( object _u ) : int

Compute the LSH hashes

GetPStableRandomVector ( Random rand, int dim ) : float[]
Load ( BinaryReader Input ) : void
PreBuild ( Random rand, object firstObject ) : void
Save ( BinaryWriter Output ) : void
microHash ( float a, float b ) : int

Method Details

ComputeHash() public méthode

Compute the LSH hashes
public ComputeHash ( object _u ) : int
_u object
Résultat int

GetPStableRandomVector() public méthode

public GetPStableRandomVector ( Random rand, int dim ) : float[]
rand System.Random
dim int
Résultat float[]

Load() public méthode

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

PreBuild() public méthode

public PreBuild ( Random rand, object firstObject ) : void
rand System.Random
firstObject object
Résultat void

Save() public méthode

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

microHash() public méthode

public microHash ( float a, float b ) : int
a float
b float
Résultat int