Finds the interval that contains the given value.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Interval<T> FindBin<T>(
this Histogram<Interval<T>> histogram,
T value
)
where T : Object, IComparable<T>
<ExtensionAttribute>
Public Shared Function FindBin(Of T As {Object, IComparable(Of T)}) (
histogram As Histogram(Of Interval(Of T)),
value As T
) As Interval(Of T)
public:
[ExtensionAttribute]
generic<typename T>
where T : Object, IComparable<T>
static Interval<T> FindBin(
Histogram<Interval<T>>^ histogram,
T value
)
[<ExtensionAttribute>]
static member FindBin :
histogram : Histogram<Interval<'T>> *
value : 'T -> Interval<'T> when 'T : Object and IComparable<'T>
Parameters
- histogram
- Type: Extreme.DataAnalysisHistogramIntervalT
A histogram. - value
- Type: T
The value to find.
Type Parameters
- T
Return Value
Type:
IntervalTA
IntervalT structure that contains
the given value. An exception is thrown if the value is out of bounds.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HistogramIntervalT. 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 IntervalT that contains the
specified value.
Reference