PageRenderTime 13ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/fingerprint/man/fold.Rd

http://github.com/rajarshi/cdkr
Unknown | 33 lines | 31 code | 2 blank | 0 comment | 0 complexity | 6494638b1a4553d6535a5ffb7ce3bd17 MD5 | raw file
  1. \name{fold}
  2. \alias{fold}
  3. \title{
  4. Fold a fingerprint
  5. }
  6. \description{
  7. In many situations a fingerprint is generated using a large length (such as 1024 bits or more).
  8. As a result of this, the fingerprints for a dataset can be very sparse. One approach to increasing
  9. bit density of such fingerprints is to fold them. This is performed by dividing the original
  10. fingerprint bitstring into two substrings of equal length and then perform an OR on
  11. the two substrings.
  12. It should be noted that many fingerprint generating routines will perform this internally.
  13. }
  14. \usage{
  15. fold(fp)
  16. }
  17. \arguments{
  18. \item{fp}{
  19. The fingerprint to fold. Should be of class \code{fingerprint}.
  20. }
  21. }
  22. \value{
  23. An object of class \code{fingerprint} representing the folded fingerprint.
  24. }
  25. \examples{
  26. # make a fingerprint vector
  27. fp <- new("fingerprint", nbit=64, bits=sample(1:64, 30))
  28. fold(fp)
  29. }
  30. \keyword{logic}
  31. \author{Rajarshi Guha \email{rguha@indiana.edu}}