Accord.Statistics.Visualizations.Histogram.FromData C# (CSharp) Method

FromData() public method

Creates a histogram of values from a sample.
public FromData ( double values ) : Histogram
values double The values to be binned in the histogram.
return Histogram
        public Histogram FromData(double[] values)
        {
            var hist = new Histogram();
            hist.Compute(values);
            return hist;
        }