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 = 0.0) – The minimum value of the input range.

  • in_max (float = 1.0) – The maximum value of the input range.

Returns:

The rescaled array.

Return type:

NDArray

Inherited Common Usage