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