Sets the total for each bin in a Histogram.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub SetTotals ( _ totals As Double() _ ) |
| C# |
|---|
public void SetTotals ( double[] totals ) |
| C++ |
|---|
public: void SetTotals ( array<double>^ totals ) |
Parameters
- totals ()
- 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 totals are copied into the bin totals.
To add to the current totals, use the AddTotals(Double[]()) method.
To set all totals to zero, use the Clear() method.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | totals is nullNothingnullptr. |
| DimensionMismatchException | The length of totals does not match the number of bins in the histogram. |