fp.to.vector {fingerprint} | R Documentation |
Ordinarily, a binary fingerprint can be considered to represent a corner of a nD hypercube. However in many cases using such a representation can lead to a very sparse space. Consequently one approach is to convert the fingerprint so that it represents points on a nD unit hypersphere.
The resultant fingerprint is then a nD coordinate.
fp.to.vector(fp, size=1024)
fp |
A fingerprint vector |
size |
Length of the bit string represented by the fingerprint vector |
A numeric of length equal to size corresponding to a unit vector for a point on the nD hypersphere
Rajarshi Guha rguha@indiana.edu
# make a fingerprint vector fp <- fp.from.bstring("110011") # print out the string representation vec <- fp.to.vector(fp,6)