Bk: Birth Submove Probability

Description Usage Arguments Value Author(s) Examples

View source: R/rjmcmcMethodsIntern.R

Description

Calculation of the birth submove probability of adding a new nucleosome using a truncated Poisson distribution.

Usage

1
Bk(k, lambda, kMax = 30)

Arguments

k

a positive integer, the number of nucleosomes.

lambda

a positive numeric, the theorical mean of the Poisson distribution.

kMax

a positive integer, the maximum number of nucleosomes authorized. When k is equal or superior to kMax, the returned value is 0. Default: 30.

Value

a numeric value. The value 0 when k is equal or superior to kMax or when k is equal to 1.

Author(s)

Rawane Samb

Examples

1
2
3
4
5
6
7
8
## Return the birth submove probability
RJMCMC:::Bk(k = 14L, lambda = 1L, kMax = 30L)

## Zero is returned when k = 1
RJMCMC:::Bk(k = 1L, lambda = 3L, kMax = 30L)

## Zero is returned when k is superior to kMax
RJMCMC:::Bk(k = 31L, lambda = 2L, kMax = 30L)

ArnaudDroitLab/RJMCMC documentation built on Sept. 13, 2017, 5:48 a.m.