HistogramGetRange Method |
Namespace: Accord.Statistics.Visualizations
The method calculates range of stochastic variable, which summary probability comprises the specified percentage of histogram's hits.
Sample usage:
// create histogram Histogram histogram = new Histogram( new int[10] { 0, 0, 1, 3, 6, 8, 11, 0, 0, 0 } ); // get 50% range IntRange range = histogram.GetRange( 0.5 ); // show the range ([4, 6]) Console.WriteLine( "50% range = [" + range.Min + ", " + range.Max + "]" );