C# Class natix.SimilaritySearch.LSH_FloatVectorL2

LSH for Binary hamming space
Inheritance: LSH
显示文件 Open project: sadit/natix Class Usage Examples

Public Methods

Method 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 method

Compute the LSH hashes
public ComputeHash ( object _u ) : int
_u object
return int

GetPStableRandomVector() public method

public GetPStableRandomVector ( Random rand, int dim ) : float[]
rand System.Random
dim int
return float[]

Load() public method

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

PreBuild() public method

public PreBuild ( Random rand, object firstObject ) : void
rand System.Random
firstObject object
return void

Save() public method

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

microHash() public method

public microHash ( float a, float b ) : int
a float
b float
return int