copapy.filters.median#
- copapy.filters.median(input_vector)#
Median of the elements of a vector: the middle element of the sorted elements or the average of the two middle elements for an even number of elements.
- Parameters:
input_vector (
ArrayType[float]) – The input vector (or 1D tensor) containing numerical values.- Return type:
value[float] |float- Returns:
The median value of the input vector.