Learn R Programming

EBS (version 3.1)

TruncPois: Truncated Poisson distribution

Description

Given a parameter lambda and a number Kmax, computes the distribution of the truncated Poisson(lambda) up to Kmax.

Usage

TruncPois(lambda,Kmax)

Arguments

lambda
Value of the Poisson parameter wanted
Kmax
Maximum number of segments considered

Value

A vector of probabilities of size Kmax with truncated poisson probability.

Details

Given a parameter lambda and a number Kmax, computes the distribution of the truncated Poisson(lambda) up to Kmax.

References

Rigaill, Lebarbier & Robin (2012): Exact posterior distributions over the segmentation space and model selection for multiple change-point detection problems Statistics and Computing

Cleynen & Robin (2014): Comparing change-point location in independent series Statistics and Computing

See Also

EBSPostK

Examples

Run this code
# truncated Poisson with parameter 3.5 and Kmax=20
priorK<-TruncPois(3.5,20)

Run the code above in your browser using DataLab