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
Input value inValues list[float]
Input value inWeights list[float] | None None
Output value outMedian float
Output value outValues list[float]