fill_items_coding_maps: Prepare encoding and decoding 'hash maps' for sequence items

Description Arguments Details

Description

Prepare encoding and decoding hash maps for sequence items

Arguments

elems

the input elements of a sequence

val2num

the reference to hash map representing the encoding to integer value

num2str

the reference to hash map representing the (reversed to val2num) encoding to string value

lowest_not_used_num

the reference to integer value denoting current counter used to encode elements

val2str_converter

function that take a sequence item and returns its string representation that is used for presentation

Details

Enumerates each sequence item in order to convert non-integer values to integer ones B is the template Rcpp input type S is the template c++ input type of one element


piotr-ole/kmer documentation built on Nov. 14, 2019, 8:10 p.m.