simplex_check: Check whether a vector is an element of the probability...

Description Usage Arguments Value

Description

Check whether a vector is an element of the probability simplex

Usage

1
simplex_check(p, allow_zero = TRUE)

Arguments

p

vector the vector to check

allow_zero

boolean whether to allow elements with zero entries (boundary of simplex)

Value

boolean whether p is a valid probability distribution


PhilChodrow/compx documentation built on May 8, 2019, 1:34 a.m.