Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
LexisMinhash::Engine::ShingleRoller
Inherits
Reference
<
Object
Rolling hash for O(n) shingling with circular buffer optimization
Constants
P = 31_u64
Constructors
new
(window_size :
Int32
)
Source
Instance methods
current_shingle
Source
reset
Source
roll
(byte :
UInt8
) :
UInt64
|
Nil
Source
window_size
Source