Dear openTURNS users, I want to create a distribution that consists out of two truncated distributions. Similar to the example in the picture. The first or left part of the combined distribution shall follow exactly the original distribution (called "Proof loading" in the example). The second or right part would be adjusted so that the CDF reaches 1 again.
I thought I could do this with a combination of Truncated and Mixture distribution. I created two distribution truncated at "l", the boundary in the example picture. From the documentation http://doc.openturns.org/openturns-latest/sphinx/user_manual/_generated/openturns.TruncatedDistribution.html I assumed the parameter "threshold" would allow to set an limit to the total probability of the truncated distributions. E.g. the code I tried is like: Threshold_1 = ProofLoading.ComputeCDF( l ) LeftPart = TruncatedDistribution(ProofLoading, l , TruncatedDistribution.UPPER, threshold = Treshold_1) Threshold_2 = 1 - Threshold_1 RightPart = TruncatedDistribution(Resistance, l , TruncatedDistribution.LOWER, threshold = Treshold_2) R_proof = Mixture([LeftPart, RightPart]) But I don't see an effect of 'threshold' at all. If my approach is wrong, how can I achieve it? Or is this maybe a bug? I'm using OT 1.7 with python 3.5 from Anaconda. Thank you very much! [cid:[email protected]] Best regards, Henning
_______________________________________________ OpenTURNS users mailing list [email protected] http://openturns.org/mailman/listinfo/users
