norm

norm(arr: ndarray, obs_axis: int = -1) None[source][source]

Oversample by obtaining the distribution and randomly selecting

Parameters:
  • arr (array) – The data to oversample.

  • obs_axis (int) – The axis along which to apply func.

Return type:

None

Examples

>>> np.random.seed(0)
>>> arr = np.array([1, 2, 4, 5, 7, 8,
... float("nan"), float("nan")])
>>> norm(arr)
>>> arr
array([1.        , 2.        , 4.        , 5.        , 7.        ,
       8.        , 8.91013086, 5.50039302])