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.