NormalizeProfile


Rescales a profile linearly, so that its minimum becomes inNewMinimum and its maximum becomes inNewMaximum.

Syntax

C++
C#
Python
 
def NormalizeProfile(
	inProfile: Profile,
	inSaturateHighestFraction: float,
	inSaturateLowestFraction: float,
	outProfile: Profile,
	/,
	*,
	inRange: Range | None = None,
	inNewMinimum: float | None = None,
	inNewMaximum: float | None = None
)
-> (
	outA: float,
	outB: float
)

Parameters

Name Type Range Default Description
Input value inProfile Profile Input profile
Input value inRange Range | None None
Input value inNewMinimum float | None None Desired minimum value of the resulting profile (if set to Nil, the minimum of the input profile is used)
Input value inNewMaximum float | None None Desired maximum value of the resulting profile (if set to Nil, the maximum of the input profile is used)
Input value inSaturateHighestFraction float 0.0 - 1.0 Fraction of the highest values skipped during normalization
Input value inSaturateLowestFraction float 0.0 - 1.0 Fraction of the lowest values skipped during normalization
Output value outProfile Profile Normalized profile
Output value outA float Multiplicative parameter of the applied linear transformation
Output value outB float Additive parameter of the applied linear transformation