public mean() as Double:
Computes the arithmetic mean of all elements.
Mean value as Double.
Double
import klyn.math a = NDArray<Int>.fromList([1, 2, 3, 4]) print(a.mean()) # 2.5