powered by
Function calculating membership of a point in the interior of the simplex.
bound_dirichlet(theta)
Boolean specifying whether theta lies in the interior of the simplex.
point to check
theta_ext <- runif(100) theta_ins <- runif(100) / 100 bound_dirichlet(theta_ext) bound_dirichlet(theta_ins)
Run the code above in your browser using DataLab