You are here: Start » AVL.NET » Function Reference » Profile » Profile Point Transforms » 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 | |
---|---|---|---|---|---|
inProfile | AvlNet.Profile | Input profile. | |||
inRange | AvlNet.Range? | ||||
inNewMinimum | float? | Desired minimum value of the resulting profile (if set to Nil, the minimum of the input profile is used). Default value: atl::NIL. | |||
inNewMaximum | float? | Desired maximum value of the resulting profile (if set to Nil, the maximum of the input profile is used). Default value: atl::NIL. | |||
inSaturateHighestFraction | float | <0.0f, 1.0f> | 0.0f | Fraction of the highest values skipped during normalization. Default value: 0.0f. | |
inSaturateLowestFraction | float | <0.0f, 1.0f> | 0.0f | Fraction of the lowest values skipped during normalization. Default value: 0.0f. | |
outProfile | AvlNet.Profile | Normalized profile. | |||
outA | float | Multiplicative parameter of the applied linear transformation. | |||
outB | float | Additive 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. |