#### /fingerprint/man/vec.Rd

http://github.com/rajarshi/cdkr
Unknown | 33 lines | 32 code | 1 blank | 0 comment | 0 complexity | ca09bc634ca0b37f30dda125555410f6 MD5 | raw file
 1\name{euc.vector}
2\alias{euc.vector}
3\title{
4  Euclidean Representation of Binary Fingerprints
5}
6\description{
7 Ordinarily, a binary fingerprint can be considered to represent a
8 corner of a nD hypercube. However in many cases using such a representation
9 can lead to a very sparse space. Consequently one approach is to convert
10 the fingerprint so that it represents points on a nD unit hypersphere.
11
12 The resultant fingerprint is then a nD coordinate.
13}
14\usage{
15euc.vector(fp)
16}
17\arguments{
18    \item{fp}{
19        An object of class \code{fingerprint}.
20    }
21}
22\value{
23A numeric of length equal to the bit length of the fingerprint. The
24result corresponds to a unit vector for a point
25on the nD hypersphere
26}
27\examples{
28# make a fingerprint vector
29fp <- new("fingerprint", nbit=8, bits=c(1,3,4,5,7))
30vec <- euc.vector(fp)
31}
32\keyword{logic}
33\author{Rajarshi Guha \email{rguha@indiana.edu}}