flex
- auto flex(F0 f0, F1 f1, F2 f2, S c, S[] points, S rho, int maxApproxPoints)
- auto flex(Pdf pdf, F0 f0, F1 f1, F2 f2, S c, S[] points, S rho, int maxApproxPoints)
- auto flex(F0 f0, F1 f1, F2 f2, S[] cs, S[] points, S rho, int maxApproxPoints)
- auto flex(Pdf pdf, F0 f0, F1 f1, F2 f2, S[] cs, S[] points, S rho, int maxApproxPoints)
- auto flex(Pdf pdf, FlexInterval!S[] intervals)
mir random flex
functionsstructs
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.