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];
}
}
}