Description Usage Arguments Value Author(s) Examples
Computes the dot product of the parameters with the kmer counts, with or without it being warped
1 | kmer_dot_prod_c(indices, params, warp_ = NULL)
|
kmers |
is a vector of integers of any length representing kmers over a window |
paras |
is a vector of length equal to the total number of kmers |
warp |
is a vector of length as long as the kmer vector, with the multiplicative weights for how much to warp the entry |
A double, representing the dot product of the parameters with what would usually be the vector of kmer abundances (warped or not)
Tom Mayo t.mayo@ed.ac.uk
1 2 3 | kmers <- c(0,7,89,45,75,65,22,12)
paras <- rep(1,100)
kmer_dot_prod(kmers,paras)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.