powered by
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)
Number of data points
Numeric constant. 0 <= Gama <=1.
Numeric constant. Total mass of the centering measure for the Dirichlet process.
Level of truncation when computing the expectation. Defaults to n. If greater than n, it is fixed to n.
A plot with the prior distribution on the number of components.
# NOT RUN { plot_prior_number_of_components(50, 0.4) # }
Run the code above in your browser using DataLab