Median Method
Returns the median (middle) value of all arguments.
Definition
Namespace: GHost.GSharp.PI.ACE
Assembly: GHost.GSharp.PI.ACE (in GHost.GSharp.PI.ACE.dll) Version: 1.2.44.3 (1.2.44.3)
C#
public static double Median(params Object[] values)
VB
Public Shared Function Median (ParamArray values As Object()) As Double
Parameters
- Object[]
- x1, x2, .., xN: Input arguments.
Return Value
Double
Median value of all input arguments.
Remarks
If the number of arguments is even, the average of the two middle values is returned. An error is raised for non-numeric arguments.
Exceptions
| ArgumentNullException | |
| ArgumentException |