differt.utils.smoothing_function

differt.utils.smoothing_function#

smoothing_function(x, /, smoothing_factor=1.0)[source]#

Return a smoothed approximation of the Heaviside step function.

This function is used internally for smoothing-out discontinuities in Ray Tracing, see Smoothing Discontinuities for Fully Differentiable Ray Tracing.

Parameters:
Return type:

Float[ArrayLike, '*batch']

Returns:

The output of the smoothing function.