Histogram<T>.SetTotals Method

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


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


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


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.


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

See Also