Text minhashpermutations multiplier - CyrilB1531/lodestar GitHub Wiki

Development build. This page describes main, not a released package. The latest published Lodestar.Text is 0.6.0 — read its documentation.

HomeTextSet similarity

MinHashPermutations.Multiplier

The a coefficient of one permutation.

public ulong Multiplier(int index)

Parametersindex is which permutation, from zero.

Returnsulong, the multiplier supplied for it.

ExceptionsArgumentOutOfRangeException when index is outside the set.

Example — the shape a caller writes.

using Lodestar.Text.Similarity;

var permutations = new MinHashPermutations([3UL, 5UL], [13UL, 17UL]);

ulong second = permutations.Multiplier(1);  // => 5

Applies to — net10.0, netstandard2.0.

See alsoMinHashPermutations.Addend.