tightbinder.utils.scale_array#

scale_array(array, factor=10)[source]#

Routine to scale a vector by a factor max_value/max(vector), where max_value is the new maximum value.

Parameters:
  • array (Union[list, ndarray]) – Array to scale.

  • factor (int) – Factor to multiply the array. Defaults to 10

Return type:

ndarray

Returns:

Scaled array.