expected_number_of_components_Dirichlet {BNPdensity} | R Documentation |
Computes the expected number of components for a Dirichlet process.
Description
Computes the expected number of components for a Dirichlet process.
Usage
expected_number_of_components_Dirichlet(
n,
Alpha,
ntrunc = NULL,
silence = TRUE
)
Arguments
n |
Number of data points |
Alpha |
Numeric constant. Total mass of the centering measure. |
ntrunc |
Level of truncation when computing the expectation. Defaults to n. If greater than n, it is fixed to n. |
silence |
Boolean. Whether to print the current calculation step for the Stable process, as the function can be long |
Value
A real value which approximates the expected number of components
Reference: P. De Blasi, S. Favaro, A. Lijoi, R. H. Mena, I. Prünster, and M. Ruggiero, “Are Gibbs-type priors the most natural generalization of the Dirichlet process?,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 37, no. 2, pp. 212–229, 2015.
Examples
expected_number_of_components_Dirichlet(100, 1.2)
[Package BNPdensity version 2023.3.8 Index]