HighestRandomWeightHash<TKey, TBucket>.Bucket
Namespace: SnowBank.IO.Hashing · struct
Constructors
Bucket
Bucket(TBucket name, ulong seed, double weight)
Methods
Score
double Score(Func<ulong, TKey, ulong> hf, TKey key)
Fields
Name
readonly TBucket Name
Name the bucket
Seed
readonly ulong Seed
Precomputed seed for the bucket
Weight
readonly double Weight
Weight coefficient for the bucket (1.0 = base, > 1 = higher chance, < 1 = lower chance)