sampleK: Sample initial number of changepoints.

Description Usage Arguments Value Author(s) References

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.



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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.