LSH
01 Syntax
Microsoft.VisualBasic.Math.HashMaps.MinHash.LSH
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| FindSimilarItems | 1 | LSH 处理过程:将数据分桶,找出相似候选对 |
| CalculateSimilarity | 1 | 辅助:计算两个签名的相似度 (海明距离或匹配度) |
| BuildLSHBuckets | 1 |
03 Members
LSH 处理过程:将数据分桶,找出相似候选对
Parameters
| Name | Type | Description |
|---|---|---|
allSequences | SequenceItem() | - |
Num_Bands | Int32 | LSH波段数 |
Rows_Per_Band | Int32 | 每个波段的行数 (100 / 20 = 5) |
CalculateSimilarity(
UInt32(), UInt32())辅助:计算两个签名的相似度 (海明距离或匹配度)
Parameters
| Name | Type | Description |
|---|---|---|
sig1 | UInt32() | - |
sig2 | UInt32() | - |
BuildLSHBuckets(
IEnumerable(Of SequenceItem), Int32, Int32)