%!demo
%! ## Compute the mean for different Triangular distributions
%! pd1 = TriangularDistribution (0, 1, 2);
%! pd2 = TriangularDistribution (1, 2, 3);
%! mean1 = mean (pd1)
%! mean2 = mean (pd2)
%!
%! ## This shows how to compute the expected value for Triangular distributions
%! ## with different parameters, representing the average value in scenarios
%! ## like budgeting or time estimation.
