nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Math.Core / LSH

LSH

Full name Microsoft.VisualBasic.Math.HashMaps.MinHash.LSH Assembly Microsoft.VisualBasic.Math.Core Members 3

01 Syntax

Microsoft.VisualBasic.Math.HashMaps.MinHash.LSH

02 Methods

NameOverloadsSummary
FindSimilarItems 1 LSH 处理过程:将数据分桶,找出相似候选对
CalculateSimilarity 1 辅助:计算两个签名的相似度 (海明距离或匹配度)
BuildLSHBuckets 1

03 Members

method FindSimilarItems #
FindSimilarItems(SequenceItem(), Int32, Int32, Boolean)

LSH 处理过程:将数据分桶,找出相似候选对

Parameters
NameTypeDescription
allSequencesSequenceItem()

-

Num_BandsInt32

LSH波段数

Rows_Per_BandInt32

每个波段的行数 (100 / 20 = 5)

method CalculateSimilarity #
CalculateSimilarity(UInt32(), UInt32())

辅助:计算两个签名的相似度 (海明距离或匹配度)

Parameters
NameTypeDescription
sig1UInt32()

-

sig2UInt32()

-

method BuildLSHBuckets #
BuildLSHBuckets(IEnumerable(Of SequenceItem), Int32, Int32)