Is this a continuation of this topic? If so, your function is a CDF, just vertically translated by a constant, so you could use the fact that it’s nondecreasing to shave off an instruction or two from the hot loop in the bisection method code. That could maybe be a performance improvement, if the evaluation of the function is cheap enough.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Memoizing a function using only a subset of arguments as an identifier | 3 | 281 | December 11, 2023 | |
Another implementation of `@memoize` which is type inference friendly & generic functions | 0 | 1102 | April 9, 2017 | |
Minimizing allocations from memoized functions | 10 | 895 | October 31, 2020 | |
How to define a function that remembers values? | 5 | 1361 | October 26, 2017 | |
Memoization of functions with vector inputs in Julia and JuMP | 0 | 450 | November 29, 2018 |