sample_XandY: Sample full model

Description Usage Arguments Value

Description

Samples both hidden states and emissions

Usage

1
sample_XandY(rho, theta, M, L, sample_x0 = NULL)

Arguments

rho,

rathe of recombination between ajacent sites; affects transition rate of hidden states.

theta

Rate of mutation; affects distribution of Y|X.

M

number of hidden states of X.

L

desired length of sampled sequences.

sample_x0

a function which generates samples the initial state of the hidden variables X.

Value

a list with names “X” and “Y” X is a vector of length L encoding the hidden states Y is a vector of length L encoding the emissions.


Cronjaeger/HotBirdHMM documentation built on May 9, 2019, 6:01 p.m.