fold: Fold

Description Usage Arguments Value Author(s) Examples

Description

Fold a fingerprint. This takes the second half of the fingerprints and combines with the first half with a logical 'OR' operation. The result is a fingerprint with half as many bits.

Usage

1
fold(x, count = 1, bits = NULL)

Arguments

x

The fingerprint(s) to fold. This can be either an FP or an FPset object.

count

The number of times to fold this fingerprint. Folding will stop early if the fingerprint is reduced down to 1 bit before reaching the requested fold count.

bits

Fold this fingerprint until it is bits bits long. An exception will be thrown if bits is not reachable.

Value

The new, folded, fingerprint.

Author(s)

Kevin Horan

Examples

1
2
	fp = new("FP",fp=c(1,0,1,1, 0,0,1,0))
	foldedFp = fold(fp,bits=4)

girke-lab/ChemmineR-git-svn-bridge documentation built on May 17, 2019, 5:25 a.m.