16 Aug 2014 03:37:57 UTC
- Distribution: Data-BitStream
- Module version: 0.08
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (676 / 0 / 0)
- KwaliteeBus factor: 1
- 78.88% Coverage
- License: perl_5
- Perl: v5.6.2
- Activity24 month
- Download (108.2KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- SEE ALSO
Data::BitStream::Code::Levenstein - A Role implementing Levenstein codes
A role written for Data::BitStream that provides get and set methods for the Levenstein codes. The role applies to a stream object.
These are also known as Levenshtein or Левенште́йн codes. They are often used in situations where the Elias Omega, Even-Rodeh, or Fibonacci codes would be considered.
Insert one or more values as Levenstein codes. Returns 1.
Decode one or more Levenstein codes from the stream. If count is omitted, one value will be read. If count is negative, values will be read until the end of the stream is reached. In scalar context it returns the last code read; in array context it returns an array of all codes read.
These methods are required for the role.
- V.E. Levenstein, "On the Redundancy and Delay of Separable Codes for the Natural Numbers," in Problems of Cybernetics v. 20 (1968), pp 173-179.
Dana Jacobsen <email@example.com>
Copyright 2011 by Dana Jacobsen <firstname.lastname@example.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Data::BitStream, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Data::BitStream
For more information on module installation, please visit the detailed CPAN module installation guide.