Histogram.Increment Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Increment<T>(Histogram<T>, T) Increments a bin of a histogram by 1.
Increment<T>(Histogram<Interval<T>>, T) Increments the bin of a histogram that contains the specified value by 1.
Increment<T>(Histogram<T>, T, Double) Increments a bin of a histogram by the specified amount.
Increment<T>(Histogram<Interval<T>>, T, Double) Increments a bin of a histogram whose range contains a value by the specified amount.

Histogram.Increment<T>(Histogram<T>, T)

Increments a bin of a histogram by 1.
C#
public static void Increment<T>(
	this Histogram<T> histogram,
	T value
)

Parameters

histogram  Histogram<T>
The histogram whose bin is to be incremented.
value  T
The key of the bin that is to be incremented.

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

To increment by a weight other than one, provide the weight as the second parameter.

Histogram.Increment<T>(Histogram<Interval<T>>, T)

Increments the bin of a histogram that contains the specified value by 1.
C#
public static void Increment<T>(
	this Histogram<Interval<T>> histogram,
	T value
)
where T : Object, IComparable<T>

Parameters

histogram  Histogram<Interval<T>>
The histogram whose bin is to be incremented.
value  T
The key of the bin that is to be incremented.

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

To increment by a weight other than one, provide the weight as the second parameter.

Histogram.Increment<T>(Histogram<T>, T, Double)

Increments a bin of a histogram by the specified amount.
C#
public static void Increment<T>(
	this Histogram<T> histogram,
	T value,
	double weight
)

Parameters

histogram  Histogram<T>
The histogram whose bin is to be incremented.
value  T
A number whose containing bin is to be incremented.
weight  Double
The value by which to increment the value of the bin.

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

Histogram.Increment<T>(Histogram<Interval<T>>, T, Double)

Increments a bin of a histogram whose range contains a value by the specified amount.
C#
public static void Increment<T>(
	this Histogram<Interval<T>> histogram,
	T value,
	double weight
)
where T : Object, IComparable<T>

Parameters

histogram  Histogram<Interval<T>>
The histogram whose bin is to be incremented.
value  T
A number whose containing bin is to be incremented.
weight  Double
The value by which to increment the value of the bin.

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

See Also