#### /fingerprint/man/rndfp.Rd

http://github.com/rajarshi/cdkr
Unknown | 32 lines | 32 code | 0 blank | 0 comment | 0 complexity | ce65a09d4194e1d28a28c83a6bc77866 MD5 | raw file
 1\name{random.fingerprint}
2\alias{random.fingerprint}
3\title{
4  Generate Randomized Fingerprints
5}
6\description{
7  A utility function that can be used to generate binary fingerprints
8  of a specified length with a specifed number of bit positions
9  (selected randomly) set to 1. Currently bit positions are selected uniformly
10}
11\usage{
12random.fingerprint(nbit,on)
13}
14\arguments{
15    \item{nbit}{
16      The length of the fingerprint, that is, the total number of bits.
17      Must be a positive integer.
18    }
19    \item{on}{
20      How many positions should be set to 1
21      }
22}
23\value{
24An object of class \code{fingerprint}
25}
26\examples{
27# make a fingerprint vector
28fp <- random.fingerprint(32, 16)
29as.character(fp)
30}
31\keyword{logic}
32\author{Rajarshi Guha \email{rguha@indiana.edu}}