pk: Probability mass function for truncated poisson

View source: R/pk.R

pkR Documentation

Probability mass function for truncated poisson

Description

Probability mass function for truncated poisson

Usage

pk(k, kstar, lambda)

Arguments

k

A scalar for the number of changes points in a cluster

kstar

A scalar with the number maximum of change points in all clusters

lambda

A scalar defining the parameter for the Truncate Poisson distribution that controls the number of change points (or its initial values)

Value

'pk' returns a numerical value representing the marginal probability for a given k

Note

This function is used within the Gibbs sampler, it is not expected to be used alone.

See Also

[gibbs_alg()]

Examples

# Hypothetical values
pk(k = 2, kstar = 3, lambda = 2)


BayesCPclust documentation built on April 4, 2025, 5:19 a.m.