fold | R Documentation |
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.
fold(x, count = 1, bits = NULL)
x |
The fingerprint(s) to fold. This can be either an |
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 |
The new, folded, fingerprint.
Kevin Horan
fp = new("FP",fp=c(1,0,1,1, 0,0,1,0))
foldedFp = fold(fp,bits=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.