mvl_hash_vectors {RMVL} | R Documentation |
This function is passed a list of MVL vectors which are interpreted in data.frame fashion. For each row, i.e. set of vector values with the same index we compute a hash value. Identical rows produce identical hash values. The hash values have good entropy and can be used to map row values into random numbers.
mvl_hash_vectors(L, indices = NULL)
L |
list of vector like MVL_OBJECTs |
indices |
list of indices into objects to sort. If absent or NULL it is assumed to be from 1 to the length of the object. |
hash values in numeric format, with 52 valid bits. Each value is uniform between 1 and 2.
mvl_order_vectors
, mvl_find_matches
, mvl_group
, mvl_find_matches
, mvl_indexed_copy
, mvl_merge
, mvl_write_hash_vectors
## Not run: Mtmp<-mvl_open("tmp_a.mvl", append=TRUE, create=TRUE) mvl_write_object(Mtmp, runif(100), "vec1") Mtmp<-mvl_remap(Mtmp) hash1<-mvl_hash_vectors(list(Mtmp["vec1", ref=TRUE])) ## End(Not run)