Jenkin's "One at a time" hash

버전 1.1.0.0 (2.26 KB) 작성자: Dan Ellis
Simple, high-performance hash to map char strings into 32 bit ints
다운로드 수: 783
업데이트 날짜: 2009/5/11

라이선스 보기

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 CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

- removed debug print statement (oops)
- tests for type of input, now works for floating point inputs too

1.0.0.0