This is a C mex interface to the "one at a time" string-to-int32 hash function by Bob Jenkins. I found it clumsy to implement this within Matlab, so I implemented it in C.
For information on the hash function, see
http://en.wikipedia.org/wiki/Jenkins_hash_function
http://www.burtleburtle.net/bob/hash/doobs.html
To use the function, first
mex jenkinshash.c
then simply
h = jenkinshash('Some string');
If the argument is a matrix, one hash is returned for each row.
引用格式
Dan Ellis (2024). Jenkin's "One at a time" hash (https://www.mathworks.com/matlabcentral/fileexchange/24076-jenkin-s-one-at-a-time-hash), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2009a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Characters and Strings 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!