update_paras: Creates the update for the parameter vector according to the...

Description Usage Arguments Value Author(s)

Description

Returns a vector of length equal to the parameter vector, which is update vector to be added to the parameter vector

Usage

1
update_paras(kmers, update_vec, err_term, add_to_update = TRUE)

Arguments

kmers

A vector of integers representing the kmers that were present leading to the error term

update_vec

The parameter update vector so far

err_term

The error term used for the update

err_term

The error term used for the update

Value

add_to_update TRUE/FALSE, whether the calculated update vector for the run is added automatically to the input update vector, so that the function returns a running total, which is the faster option.

Author(s)

Tom Mayo t.mayo@ed.ac.uk


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