Histogram<T>.SetTotals Method

Note: This API is now obsolete.
Sets the total for each bin in a histogram.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
[ObsoleteAttribute("Use the CopyTo method of the values vector on the histogram instead.")]
public void SetTotals(
	Vector<double> values
)

Parameters

values  Vector<Double>
A Double array containing the total for each bin.

Remarks

Use this method to directly set the totals of all bins in the histogram. The values in values are copied into the bin totals. To add to the current totals, use the AddTotals(Vector<Double>) method. To set all totals to zero, use the Clear() method.

Exceptions

ArgumentNullExceptionvalues is null.
DimensionMismatchExceptionThe length of values does not match the number of bins in the histogram.

See Also