


"""simple docstring"""





def    _snake_case  (  _snake_case :	list[int]	):
      if not nums:  # Makes sure that the list is not empty
            raise ValueError('''List is empty'''	)

      lowerCAmelCase    :		Tuple				=      sum(_snake_case	) / len(_snake_case	)  # Calculate the average
      return sum(abs(x - average	) for x in nums	) / len(_snake_case	)


if __name__ == "__main__":
 import doctest

 doctest.testmod()






"""simple docstring"""





import numpy as np


def    _snake_case  (  _snake_case :	np.array	):
      return 1 / (1 + np.exp(-vector	))


if __name__ == "__main__":
 import doctest

 doctest.testmod()


