[This is preliminary documentation and is subject to change.]
Gets the median from the specified values.
Namespace: Rage
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax
Parameters
- values
- Type: T
The values to get the median from.
Type Parameters
- T
- The type of the values specified.
Return Value
Type: TIf the specified array has at least 1 value, returns the median; otherwise, returns the default value of [!:T].
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if values is null. |
See Also