percentage
gma.math.stretch.percentage
function percentage(data, min_label = None, max_label = None, ignore_value = None, min_per = 5, max_per = 95):
Truncates the array based on the percentage interval entered. Then stretch it to the specified range.
Parameters:
data: array.
The data to be stretched.
Optional:
min_label = float||None. Default None.
Minimum value after stretching. Default(None) is the minimum value of the input data.
max_label = float||None. Default None.
Maximum value after stretching. Default(None) is the maximum value of the input data.
ignore_value = float||None. Default None.
The value that is not involved in the calculation.
min_per = float. Default 5.
Specify the percentage of the low values to exclude from the stretch, which must be between 0 and 100.
max_per = float. Default 5.
Specify the percentage of the high values to exclude from the stretch, which must be between 0 and 100.
Returns:
Type: array.