kmer_dot_prod_c: Computes the dot product of the parameters with the kmer...

Description Usage Arguments Value Author(s) Examples

Description

Computes the dot product of the parameters with the kmer counts, with or without it being warped

Usage

1
kmer_dot_prod_c(indices, params, warp_ = NULL)

Arguments

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

Value

A double, representing the dot product of the parameters with what would usually be the vector of kmer abundances (warped or not)

Author(s)

Tom Mayo t.mayo@ed.ac.uk

Examples

1
2
3
kmers <- c(0,7,89,45,75,65,22,12)
paras <- rep(1,100)
kmer_dot_prod(kmers,paras)

TomMayo/kmermods documentation built on May 9, 2019, 4:53 p.m.