%!demo
%! ## Compute the median for different Rician distributions
%! data1 = ricernd (1, 0.5, [10000, 1]);
%! data2 = ricernd (1, 1, [10000, 1]);
%! pd1 = fitdist (data1, "Rician");
%! pd2 = fitdist (data2, "Rician");
%! median1 = median (pd1)
%! median2 = median (pd2)
%!
%! ## Use this to find the median value, which splits the distribution into
%! ## two equal probability halves, robust to skewness in signal data.
