pymem3dg.util.tanhDistribution

pymem3dg.util.tanhDistribution(x: ndarray[Any, dtype[float64]], sharpness: float, center: float = 0)

unit tanh distribution y(x) that is y=1 at x=-inf and y=0 at x=+inf :param x: distribution argument :type x: array :param sharpness: sharpness of transition :type sharpness: float :param center: location of transition between 1 and 0. Defaults to 0 :type center: float

Returns:

unit tanh distribution

Return type:

array