powered by
Calculate the densities of a given set of Dirichlet samples.
dDir(x, alpha, LOG = FALSE)
matrix or numeric vector, if matrix every row of x is an observation, if numeric vector, it's the same as a matrix with only one row.
numeric, Dirichlet parameter.
logical, return the log density if set to "TRUE".
A numeric vector of density values.
rDir
# NOT RUN { x <- rDir(5,c(1,2,3)) #generate 5 samples with parameters c(1,2,3) dDir(x,c(1,2,3)) dDir(x,c(1,2,3),LOG=TRUE) # }
Run the code above in your browser using DataLab