Points.median

Points.median()

Returns a nimble object representing the median value along the points axis.

See also

mean

Examples

>>> lst = [[0, 22, 2], [3, 22, 5]]
>>> X = nimble.data(lst)
>>> X.points.median()
<Matrix 2pt x 1ft
     median
   ┌───────
 0 │ 2.000
 1 │ 5.000
>