See the attached image below. When I use the 10%/90% for my triangular distribution input (input is in the vector form), the tail end fell into the negative values. This creates trouble when sampling the tail end of the distribution as my model does not allow for negative values. I only have the 10th/90th percentile input data so switching to 0%/100% is not going to work.
Any good way to truncate the triangular distribution? I wrote an IF statement to force the sampled value back to zero in case of sampling a negative value. It works for now but I am looking for a better solution.
Comments
1 comment