PageRenderTime 34ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/fingerprint/man/featvec.Rd

http://github.com/rajarshi/cdkr
Unknown | 54 lines | 51 code | 3 blank | 0 comment | 0 complexity | 79473fa713f0131f2a8eeaf07a92a5cb MD5 | raw file
  1. \name{featvec-class}
  2. \docType{class}
  3. \alias{featvec-class}
  4. \alias{distance,featvec,featvec,missing-method}
  5. \alias{distance,featvec,featvec,character-method}
  6. \alias{length,featvec-method}
  7. \title{Class "featvec"}
  8. \description{This class represents feature vector style fingerprints, where, rather than
  9. a bit string, the fingerprint is represented as a sequence of (signed) integers or strings.
  10. Each element of the collection is a representation of a structural feature. For cases where the
  11. features are integers, this usually corresponds to a hash of the original feature string.
  12. }
  13. \section{Objects from the Class}{
  14. Objects can be created by calls of the form \code{new("featvec", ...)}.
  15. In contrast to traditional binary fingerprints, operations on feature vectors
  16. are slightly different and essentially correspond to operations on sets. Thus
  17. the logical and (&) would correspond to the union of the two feature vectors.
  18. }
  19. \section{Slots}{
  20. \describe{
  21. \item{\code{features}:}{Object of class \code{"character"} ~~ A vector
  22. containing the numeric or character features. Numeric features are treated
  23. as character strings }
  24. \item{\code{provider}:}{Object of class \code{"character"} ~~
  25. Indicates the source of the fingerprint. Can be useful to keep
  26. track of what software generated the fingerprint.}
  27. \item{\code{name}:}{Object of class \code{"character"} ~~
  28. The name associated with the fingerprint. If not name is available
  29. this gets set to an empty string}
  30. \item{\code{misc}:}{A list to hold arbitrary items associated with a fingerprint (such as
  31. extra fields from a fingerprint file)}
  32. }
  33. }
  34. \section{Methods}{
  35. \describe{
  36. \item{distance}{\code{signature(fp1 = "featvec", fp2 = "featvec", method = "missing")}: ... }
  37. \item{distance}{\code{signature(fp1 = "featvec", fp2 = "featvec", method = "character")}: ... }
  38. \item{as.character}{\code{signature(fp = "featvec")}: ... }
  39. \item{length}{\code{signature(fp = "featvec")}: ... }
  40. \item{show}{\code{signature(fp = "featvec")}: ... }
  41. }
  42. }
  43. \author{Rajarshi Guha \email{rajarshi.guha@gmail.com}}
  44. \seealso{
  45. \code{\link{fp.read}}, \code{\link{fp.read.to.matrix}}
  46. \code{\link{fp.sim.matrix}}, \code{\link{fp.to.matrix}},
  47. \code{\link{fp.factor.matrix}}
  48. \code{\link{random.fingerprint}}
  49. }
  50. \keyword{classes}
  51. \keyword{logic}