Histogram.Tabulate Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

Tabulate<T>(Histogram<T>, IEnumerable<T>) Enters data from a sequence of values into a histogram.
Tabulate<T>(Histogram<Interval<T>>, IEnumerable<T>) Enters data from a sequence of values into a histogram.
Tabulate<T>(Histogram<T>, IList<T>, IList<Double>) Enters data from a list of values into a histogram using the specified weights.
Tabulate<T>(Histogram<Interval<T>>, IList<T>, IList<Double>) Enters data from a list of values into a histogram using the specified weights.

Tabulate<T>(Histogram<T>, IEnumerable<T>)

Enters data from a sequence of values into a histogram.
C#
public static void Tabulate<T>(
	this Histogram<T> histogram,
	IEnumerable<T> values
)

Parameters

histogram  Histogram<T>
The histogram that records the tabulation.
values  IEnumerable<T>
A sequence of values to be tabulated.

Type Parameters

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Histogram<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).

Remarks

Use this method to enter the data from a sequence into the histogram. All observations are considered to have weight equal to 1.

Exceptions

ArgumentNullException

histogram is null.

-or-

values is null.

Tabulate<T>(Histogram<Interval<T>>, IEnumerable<T>)

Enters data from a sequence of values into a histogram.
C#
public static void Tabulate<T>(
	this Histogram<Interval<T>> histogram,
	IEnumerable<T> values
)
where T : Object, IComparable<T>

Parameters

histogram  Histogram<Interval<T>>
The histogram that records the tabulation.
values  IEnumerable<T>
A sequence of values to be tabulated.

Type Parameters

T

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).

Remarks

Use this method to enter the data from a sequence into the histogram. All observations are considered to have weight equal to 1. Values that are outside the range of the histogram are discarded.

Exceptions

ArgumentNullException

histogram is null.

-or-

values is null.

Tabulate<T>(Histogram<T>, IList<T>, IList<Double>)

Enters data from a list of values into a histogram using the specified weights.
C#
public static void Tabulate<T>(
	this Histogram<T> histogram,
	IList<T> values,
	IList<double> weights
)
where T : Object, IComparable<T>

Parameters

histogram  Histogram<T>
The histogram that records the tabulation.
values  IList<T>
A list of values to be tabulated.
weights  IList<Double>
A list of weights.

Type Parameters

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Histogram<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).

Remarks

Use this method to enter the data from a list into the histogram. If weights is null, all observations are considered to have weight equal to 1.

Exceptions

ArgumentNullException

histogram is null.

-or-

values is null.

DimensionMismatchException

The length of weights does not equal the length of values.

Tabulate<T>(Histogram<Interval<T>>, IList<T>, IList<Double>)

Enters data from a list of values into a histogram using the specified weights.
C#
public static void Tabulate<T>(
	this Histogram<Interval<T>> histogram,
	IList<T> values,
	IList<double> weights
)
where T : Object, IComparable<T>

Parameters

histogram  Histogram<Interval<T>>
The histogram that records the tabulation.
values  IList<T>
A list of values to be tabulated.
weights  IList<Double>
A list of weights.

Type Parameters

T

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).

Remarks

Use this method to enter the data from a list into the histogram. If weights is null, all observations are considered to have weight equal to 1. Values that are outside the range of the histogram are discarded.

Exceptions

ArgumentNullException

histogram is null.

-or-

values is null.

DimensionMismatchException

The length of weights does not equal the length of values.

See Also