sampleK: Sample initial number of changepoints.

Description Usage Arguments Value Author(s) References

View source: R/sampleK.R

Description

This function samples the initial number of changepoints from a sparse Poisson prior.

Usage

1
sampleK(mini, maxi, lambda, nb)

Arguments

mini

Minimum value.

maxi

Maximum value.

lambda

Parameter of the Poisson distribution.

nb

Number of values to sample.

Value

The sampled number of changepoints.

Author(s)

Sophie Lebre

References

For more information on the prior choice and sampling, see:

Dondelinger et al. (2012), "Non-homogeneous dynamic Bayesian networks with Bayesian regularization for inferring gene regulatory networks with gradually time-varying structure", Machine Learning.


EDISON documentation built on May 29, 2017, 3:51 p.m.

Search within the EDISON package
Search all R packages, documentation and source code