plot_prior_number_of_components function

This plots the prior distribution on the number of components for the stable process. The Dirichlet process is provided for comparison.

This plots the prior distribution on the number of components for the stable process. The Dirichlet process is provided for comparison.

plot_prior_number_of_components( n, Gama, Alpha = 1, grid = NULL, silence = TRUE )

Arguments

  • n: Number of data points
  • Gama: Numeric constant. 0 <= Gama <=1.
  • Alpha: Numeric constant. Total mass of the centering measure for the Dirichlet process.
  • grid: Integer vector. 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

Returns

A plot with the prior distribution on the number of components.

Examples

plot_prior_number_of_components(50, 0.4)
  • Maintainer: Guillaume Kon Kam King
  • License: GPL (>= 2)
  • Last published: 2023-03-24

Useful links