Returns the mean of the elements of an array of DateTime values.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function Mean ( _ data As DateTime() _ ) As DateTime |
| C# |
|---|
public static DateTime Mean ( DateTime[] data ) |
| C++ |
|---|
public: static DateTime Mean ( array<DateTime>^ data ) |
Parameters
- data ()
- A DateTime array.
Return Value
The mean of the elements of data.
Remarks
The mean is a DateTime value.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | data is nullNothingnullptr. |