Description Usage Arguments Value Author(s) Examples
A utility function that can be used to generate binary fingerprints of a specified length with a specifed number of bit positions (selected randomly) set to 1. Currently bit positions are selected uniformly
1 | random.fingerprint(nbit,on)
|
nbit |
The length of the fingerprint, that is, the total number of bits. Must be a positive integer. |
on |
How many positions should be set to 1 |
An object of class fingerprint
Rajarshi Guha rguha@indiana.edu
1 2 3 | # make a fingerprint vector
fp <- random.fingerprint(32, 16)
as.character(fp)
|
[1] "11010101001000111010111100100010"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.