Returns a histogram of a vector using the specified bin arrangement.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Histogram<Interval<T>> CreateHistogram<T>(
this IList<T> samples,
IntervalIndex<T> bins
)
where T : Object, IComparable<T>
<ExtensionAttribute>
Public Shared Function CreateHistogram(Of T As {Object, IComparable(Of T)}) (
samples As IList(Of T),
bins As IntervalIndex(Of T)
) As Histogram(Of Interval(Of T))
public:
[ExtensionAttribute]
generic<typename T>
where T : Object, IComparable<T>
static Histogram<Interval<T>>^ CreateHistogram(
IList<T>^ samples,
IntervalIndex<T>^ bins
)
[<ExtensionAttribute>]
static member CreateHistogram :
samples : IList<'T> *
bins : IntervalIndex<'T> -> Histogram<Interval<'T>> when 'T : Object and IComparable<'T>
Parameters
- samples
- Type: System.Collections.GenericIListT
A vector. - bins
- Type: Extreme.DataAnalysisIntervalIndexT
An interval index that specifies the bin boundaries.
Type Parameters
- T
- The type of the values.
Return Value
Type:
HistogramIntervalTA vector that contains a histogram of the total weight of the binned values
in
samples.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListT. 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).
Reference