bd: Function to ensure that probability lies in interval [0, 1]

Description

Used by targeted sampling algorithm in exactCI

Usage

1
bd(x)

Arguments

x

Real number

Value

Function returns 0 if x < 0, x if 0≤q x≤q1, and 1 if x>1

Author(s)

Joseph Rigdon jrigdon@bios.unc.edu

See Also

exactCI


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.