torchcurves.functional.arctan#

torchcurves.functional.arctan(x, scale=1, out_min=-1, out_max=1)#

Normalize values using the “arctan” normalization method.

The normalization is performed with the formula

\[x_{\mathrm{norm}} = \frac{2}{\pi} \arctan(x / \mathrm{scale}),\]

where scale is a scaling factor.

Parameters:
  • x (Union[Tensor, Sequence[Union[int, float]]]) – Input tensor to be normalized.

  • scale (float) – Scale factor for normalization. (default=1)

  • out_min (float) – Lower bound of the output interval (default=-1)

  • out_max (float) – Upper bound of the output interval (default=1)

Return type:

Tensor