Median
Computes the median of an array of real numbers. The array must be not empty. Optional weights, when supplied, must be positive.
Syntax
C++
Python
def Median( inValues: list[float], /, *, inWeights: list[float] | None = None ) -> ( outMedian: float, outValues: list[float] )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inValues | list[float] | ||
![]() |
inWeights | list[float] | None | None | |
![]() |
outMedian | float | ||
![]() |
outValues | list[float] |


