The Transformed Density Rejection with Inflection Points (Flex) algorithm can sample from arbitrary distributions given its density function f, its first two derivatives and a partitioning into intervals with at most one inflection point. The partitioning needs to be mutually exclusive and sorted.
Calculate the intervals for the Flex algorithm for a T_c family given its density function, the first two derivatives and a valid start partitioning. The Flex algorithm will try to split the intervals until a chosen efficiency rho is reached.
Compute inverse transformation of a T_c family given point x. Based on Table 1, column 3 of Botts et al. (2013).
Data body of the Flex algorithm. Can be used to sample from the distribution.
Reduced version of Interval. Contains only the necessary information needed in the generation phase.
Flex module that allows to sample from arbitrary random distributions.