Histogram.TryFindBin<T> Method

Tries to find the interval that contains the given value.


Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static bool TryFindBin<T>(
	this Histogram<Interval<T>> histogram,
	T value,
	out Interval<T> bin
where T : Object, IComparable<T>


histogram  Histogram<Interval<T>>
A histogram.
value  T
The value to find.
bin  Interval<T>
On return, the Interval<T> that contains value.

Type Parameters


Return Value

true if the value was found; otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Histogram<Interval<T>>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).


Use this method to find the Interval<T> that contains the specified value.

See Also