Accord.Statistics.Visualizations.HistogramBin.Contains C# (CSharp) Method

Contains() public method

Gets whether the Histogram Bin contains the given value.
public Contains ( double value ) : bool
value double
return bool
        public bool Contains(double value)
        {
            if (histogram.InclusiveUpperBound &&
                index == histogram.Bins.Count - 1)
            {
                return value >= histogram.Edges[index] &&
                       value <= histogram.Edges[index + 1];
            }
            else
            {
                return value >= histogram.Edges[index] &&
                       value < histogram.Edges[index + 1];
            }
        }
    }