You are here: Start » AVL.NET » Function Reference » Profile » Profile Point Transforms » AVL.NormalizeProfile

AVL.NormalizeProfile

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void NormalizeProfile
(
	AvlNet.Profile inProfile,
	AvlNet.Range? inRange,
	float? inNewMinimum,
	float? inNewMaximum,
	float inSaturateHighestFraction,
	float inSaturateLowestFraction,
	AvlNet.Profile outProfile,
	out float outA,
	out float outB
)

Parameters

Name Type Range Default Description
inProfileAvlNet.ProfileInput profile.
inRangeAvlNet.Range?
inNewMinimumfloat?Desired minimum value of the resulting profile (if set to Nil, the minimum of the input profile is used). Default value: atl::NIL.
inNewMaximumfloat?Desired maximum value of the resulting profile (if set to Nil, the maximum of the input profile is used). Default value: atl::NIL.
inSaturateHighestFractionfloat<0.0f, 1.0f>0.0fFraction of the highest values skipped during normalization. Default value: 0.0f.
inSaturateLowestFractionfloat<0.0f, 1.0f>0.0fFraction of the lowest values skipped during normalization. Default value: 0.0f.
outProfileAvlNet.ProfileNormalized profile.
outAfloatMultiplicative parameter of the applied linear transformation.
outBfloatAdditive parameter of the applied linear transformation.

Errors

List of possible exceptions:

Error type Description
DomainError Range exceeds inProfile in NormalizeProfile.
DomainError The sum of inSaturateHighestFraction and inSaturateLowestFraction can't be greater than 1 in NormalizeProfile.

Function Overrides

See also