sample_YgivenX: Sample emissions

Description Usage Arguments Value

Description

Samples a sequence of binary emissions (Y[i] = 1 is interpreted as, “Heterozygous sites at position i”; whereas Y[i] = 0 is interpreted as signifying homozugosity.)

Usage

1
sample_YgivenX(X, theta, M)

Arguments

X

a vector of integers encoding the states of the hidden variables

theta

the rate of mutation between two sequences

M

the number of states of the hidden variables X

Value

A vector of the same length as X s.t. Y[i] = 1 with probability mu[X[i]].


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