|
NAMEDigest::ManberHash - a Perl package to calculate Manber HashesSYNOPSISuse Digest::ManberHash; $instance = Digest::ManberHash::new($maskbits, $prime, $charcount); $hash1 = $instance->DoHash($filename1); $hash2 = $instance->DoHash($filename2); $similarity = $instance->Compare($hash1, $hash2); DESCRIPTIONInitializationUse "Digest::ManberHash::new". Parameters:
For a detailed description please read http://citeseer.nj.nec.com/manber94finding.html. Calculating hashes$hash = $instance->DoHash($filename); This gives an object, which has an hash of hash values stored within. Comparing hashes$similarity = $instance->Compare($hash1, $hash2); This gives an value of 0.0 .. 1.0, depending on the similariness. Help wanted: The calculation could do better than now!!
Visit the GSP FreeBSD Man Page Interface. |