fp.to.vector {fingerprint}R Documentation

Converts the fingerprint from a nD cube representation to an nD sphere representation

Description

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.

Usage

fp.to.vector(fp, size=1024)

Arguments

fp A fingerprint vector
size Length of the bit string represented by the fingerprint vector

Value

A numeric of length equal to size corresponding to a unit vector for a point on the nD hypersphere

Author(s)

Rajarshi Guha rguha@indiana.edu

Examples

# make a fingerprint vector
fp <- fp.from.bstring("110011")

# print out the string representation
vec <- fp.to.vector(fp,6)

[Package fingerprint version 1.6 Index]