Returns a histogram of a vector using the specified bin arrangement.
Namespace: Extreme.DataAnalysisAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public static Histogram<Interval<T>> CreateHistogram<T>(
this IList<T> samples,
T lowerBound,
T upperBound,
int numberOfBins,
SpecialBins specialBins = SpecialBins.None
)
where T : Object, IComparable<T>
<ExtensionAttribute>
Public Shared Function CreateHistogram(Of T As {Object, IComparable(Of T)}) (
samples As IList(Of T),
lowerBound As T,
upperBound As T,
numberOfBins As Integer,
Optional specialBins As SpecialBins = SpecialBins.None
) As Histogram(Of Interval(Of T))
public:
[ExtensionAttribute]
generic<typename T>
where T : Object, IComparable<T>
static Histogram<Interval<T>>^ CreateHistogram(
IList<T>^ samples,
T lowerBound,
T upperBound,
int numberOfBins,
SpecialBins specialBins = SpecialBins::None
)
[<ExtensionAttribute>]
static member CreateHistogram :
samples : IList<'T> *
lowerBound : 'T *
upperBound : 'T *
numberOfBins : int *
?specialBins : SpecialBins
(* Defaults:
let _specialBins = defaultArg specialBins SpecialBins.None
*)
-> Histogram<Interval<'T>> when 'T : Object and IComparable<'T>
Parameters
- samples
- Type: System.Collections.GenericIListT
A vector. - lowerBound
- Type: T
The lower bound of the first histogram bin. - upperBound
- Type: T
The upper bound of the last histogram bin. - numberOfBins
- Type: SystemInt32
The number of bins. - specialBins (Optional)
- Type: Extreme.DataAnalysisSpecialBins
(Optional.) A SpecialBins
value that specifies which special bins, if any,
to include in the histogram.
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).
Numerical Libraries
Supported in: 6.0
Reference