R: Class "featvec"

featvec-class {fingerprint} | R Documentation

## Class "featvec"

### Description

This class represents feature vector style fingerprints, where, rather than a bit string, the fingerprint is represented as a sequence of (signed) integers or strings. Each element of the collection is a representation of a structural feature. For cases where the features are integers, this usually corresponds to a hash of the original feature string.

### Objects from the Class

Objects can be created by calls of the form `new("featvec", ...)`. In contrast to traditional binary fingerprints, operations on feature vectors are slightly different and essentially correspond to operations on sets. Thus the logical and (&) would correspond to the union of the two feature vectors.

### Slots

`features`:

  Object of class `"character"` ~~ A vector containing the numeric or character features. Numeric features are treated as character strings

`provider`:

  Object of class `"character"` ~~ Indicates the source of the fingerprint. Can be useful to keep track of what software generated the fingerprint.

`name`:

  Object of class `"character"` ~~ The name associated with the fingerprint. If not name is available this gets set to an empty string

`misc`:

  A list to hold arbitrary items associated with a fingerprint (such as extra fields from a fingerprint file)

### Methods

distance

  `signature(fp1 = "featvec", fp2 = "featvec", method = "missing")`: ...

distance

  `signature(fp1 = "featvec", fp2 = "featvec", method = "character")`: ...

as.character

  `signature(fp = "featvec")`: ...

length

  `signature(fp = "featvec")`: ...

show

  `signature(fp = "featvec")`: ...

### Author(s)

Rajarshi Guha rajarshi.guha@gmail.com

### See Also

`fp.read`, `fp.read.to.matrix` `fp.sim.matrix`, `fp.to.matrix`, `fp.factor.matrix` `random.fingerprint`

[Package fingerprint version 3.5.7 Index]