

"""simple docstring"""




import numpy as np

def 	A       (     snake_case__    ):




			'''simple docstring'''


			return 1 / (1 + np.exp(-vector    ))


if __name__ == "__main__":
						import doctest

						doctest.testmod()





"""simple docstring"""




def 	A       (     snake_case__    ):




			'''simple docstring'''


			if not nums:  # Makes sure that the list is not empty
						raise ValueError("""List is empty"""    )

			SCREAMING_SNAKE_CASE__								=      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()


