Learn R Programming

BNPdensity (version 2025.7.29)

log_Vnk_PY: Calculate the Logarithm of the Vnk weights for the Pitman-Yor model

Description

This function computes the logarithm of the Vnk weights for the Pitman-Yor model for given values of `n`, `k`, `Alpha`, and `Gama`.

Usage

log_Vnk_PY(n, k, Alpha, Gama)

Value

A numeric value representing the logarithm of the NRMI for the specified parameters.

Arguments

n

An integer representing the total number of observations.

k

An integer representing the number of clusters.

Alpha

A numeric value for the concentration parameter.

Gama

A numeric value for the discount parameter.

Examples

Run this code
BNPdensity:::log_Vnk_PY(7, 6, 0.5, 0.01)
BNPdensity:::log_Vnk_PY(6, 5, 0.5, 0.001)

Run the code above in your browser using DataLab