Tries to find the interval that contains the given value.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static bool TryFindBin<T>(
this Histogram<Interval<T>> histogram,
T value,
out Interval<T> bin
)
where T : Object, IComparable<T>
<ExtensionAttribute>
Public Shared Function TryFindBin(Of T As {Object, IComparable(Of T)}) (
histogram As Histogram(Of Interval(Of T)),
value As T,
<OutAttribute> ByRef bin As Interval(Of T)
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
where T : Object, IComparable<T>
static bool TryFindBin(
Histogram<Interval<T>>^ histogram,
T value,
[OutAttribute] Interval<T>% bin
)
[<ExtensionAttribute>]
static member TryFindBin :
histogram : Histogram<Interval<'T>> *
value : 'T *
bin : Interval<'T> byref -> bool when 'T : Object and IComparable<'T>
Parameters
- histogram
- Type: Extreme.DataAnalysisHistogramIntervalT
A histogram. - value
- Type: T
The value to find. - bin
- Type: Extreme.MathematicsIntervalT
On return, the IntervalT that contains
value.
Type Parameters
- T
Return Value
Type:
Boolean if the value was found; otherwise
.
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