Text 0.6.0 minhashpermutations multiplier - CyrilB1531/lodestar GitHub Wiki

Lodestar.Text 0.6.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.

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.