Learn R Programming

thames (version 0.1.2)

bound_dirichlet: Dirichlet parameter bound function

Description

Function calculating membership of a point in the interior of the simplex.

Usage

bound_dirichlet(theta)

Value

Boolean specifying whether theta lies in the interior of the simplex.

Arguments

theta

point to check

Examples

Run this code
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