LSHParameterEstimator
01 Syntax
Microsoft.VisualBasic.Math.HashMaps.MinHash.LSHParameterEstimator
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetThresholdFromIdentity | 1 | 核心推荐函数:根据目标序列一致性,计算应该使用的 MinHash 相似度阈值 |
| EstimateLSHThreshold | 1 | 估算当前 LSH 参数对应的“临界相似度” 相似度高于此值的序列有极高概率被选中,低于此值的极大概率被过滤 |
| RecommendConfig | 1 | 辅助工具:根据目标相似度推荐 b 和 r 的配置 |
03 Members
GetThresholdFromIdentity(
Double, Int32)核心推荐函数:根据目标序列一致性,计算应该使用的 MinHash 相似度阈值
Parameters
| Name | Type | Description |
|---|---|---|
targetIdentity | Double | 目标序列一致性 (如 CD-hit 的 0.8) |
k | Int32 | k-mer 大小 |
Returns
建议的 MinHash Jaccard 阈值
EstimateLSHThreshold(
Int32, Int32)估算当前 LSH 参数对应的“临界相似度” 相似度高于此值的序列有极高概率被选中,低于此值的极大概率被过滤
Parameters
| Name | Type | Description |
|---|---|---|
numBands | Int32 | 波段数 |
rowsPerBand | Int32 | 每波段行数 |
Returns
LSH 临界阈值
RecommendConfig(
Double, Int32)辅助工具:根据目标相似度推荐 b 和 r 的配置
Parameters
| Name | Type | Description |
|---|---|---|
targetJaccard | Double | 目标 Jaccard 相似度 |
totalHashFunctions | Int32 | 总哈希函数数量 (如 100) |
Returns
建议的波段数和每波段行数