#NEWLINE# def mean_alpha( alphas , surfaces ) : #NEWLINE# #INDENT# '\n    Calculate mean of absorption coefficients.\n    \n    :param alphas: Absorption coefficients :math:`\\alpha`.\n    :param surfaces: Surfaces :math:`S`.\n    ' #NEWLINE# return np . average ( alphas , axis = 0 , weights = surfaces )