%!demo
%! ## Compute the median for different Log-logistic distributions
%! data1 = loglrnd (0, 0.5, 10000, 1);
%! data2 = loglrnd (0, 1, 10000, 1);
%! pd1 = fitdist (data1, "Loglogistic");
%! pd2 = fitdist (data2, "Loglogistic");
%! median1 = median (pd1)
%! median2 = median (pd2)
%!
%! ## Use this to find the median value, which splits the distribution
%! ## into two equal probability halves, robust to the heavy tails in Log-logistic data.
