tidy3d.plugins.autograd.functions.rescale

Contents

tidy3d.plugins.autograd.functions.rescale#

class rescale[source]#

Bases:

Rescale an array from an arbitrary input range to an arbitrary output range.

Parameters:
  • array (NDArray) – The input array to be rescaled.

  • out_min (float) – The minimum value of the output range.

  • out_max (float) – The maximum value of the output range.

  • in_min (float, optional) – The minimum value of the input range. Default is 0.0.

  • in_max (float, optional) – The maximum value of the input range. Default is 1.0.

Returns:

The rescaled array.

Return type:

NDArray

Inherited Common Usage