Learn R Programming

EBS (version 2.8)

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: Exact posterior distributions over the segmentation space and model selection for multiple change-point detection problems Arxiv:1004.4347

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