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