How can I convert this matlab code to AForge.net+c# code?

How can I convert this matlab code to AForge.net+c# code?
cdf1 = cumsum(hist1) / numel(aa);
I found that there is Histogram.cumulative method is present in Accord.net. But I dont know how to use.
Please teaching how to convert.
cdf1 = cumsum(hist1) / numel(aa);
I found that there is Histogram.cumulative method is present in Accord.net. But I dont know how to use.
Please teaching how to convert.