PageRenderTime 93ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/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. The resultant fingerprint is then a nD coordinate.
  12. }
  13. \usage{
  14. euc.vector(fp)
  15. }
  16. \arguments{
  17. \item{fp}{
  18. An object of class \code{fingerprint}.
  19. }
  20. }
  21. \value{
  22. A numeric of length equal to the bit length of the fingerprint. The
  23. result corresponds to a unit vector for a point
  24. on the nD hypersphere
  25. }
  26. \examples{
  27. # make a fingerprint vector
  28. fp <- new("fingerprint", nbit=8, bits=c(1,3,4,5,7))
  29. vec <- euc.vector(fp)
  30. }
  31. \keyword{logic}
  32. \author{Rajarshi Guha \email{rguha@indiana.edu}}