function y = hcdf(x);
% Compute the cumulate density function of height filter x
%	y = hcdf(x)
%	

total = sum(x);
x_des = sort(x,'descend');
y = cumsum(x_des)/total;