Update to average calculation for Github Issue #5202

The result is the same, but itt is more common in the code base to call `np.asarray(x)` than `np.array(x, copy=False)`