Median Method
Returns the median (middle) value of all arguments.
Definition
Namespace: GHost.GSharp.Analytics.AF
Assembly: GHost.GSharp.Analytics.AF (in GHost.GSharp.Analytics.AF.dll) Version: 1.2.0.0 (1.2.44.3)
C#
public static double Median(
Object[] values
)
VB
Public Shared Function Median (
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
| ArgumentException |