Text 0.7.0 minhashpermutations multiplier - CyrilB1531/lodestar GitHub Wiki

Lodestar.Text 0.7.0. This page is frozen at that release. Read the current documentation for what main says now. A link to a decision or a migration page follows main, and leaves the archive.

Home › Set similarity

MinHashPermutations.Multiplier

The a coefficient of one permutation.

public ulong Multiplier(int index)

Parameters — index is which permutation, from zero.

Returns — ulong, the multiplier supplied for it.

Exceptions — ArgumentOutOfRangeException 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 also — MinHashPermutations.Addend.