HI to all Open TURNS users!
I am having troubles generating draws from a truncated distribution in Open-TURNS. Here is an example to illustrate the problem:
ot.TruncatedDistribution( ot.Exponential(),33., 34.)
TypeError: InvalidArgumentException : Error: the truncation interval does not contain a non-empty part of the support of the distribution
The numerical range of the exponential distribution has been set to [0; 32], which explains the error message.
However, this is a shame, because the exponential distribution with rate \lambda (inverse scale), restricted to [a; b], can actually easily be simulated as:
which is well defined, whatever 0<a<b.
Hence, my question is: can we change to numerical range of a given distribution? the Distribution class has a getRange() method but no setRange()…
Many thanks in advance for your answers,