ProfileLocalExtrema
Finds the locations at which the values of the input profile are locally highest or lowest.
Syntax
C++
C#
Python
def ProfileLocalExtrema( inProfile: Profile, /, *, inRange: Range | None = None, inCyclic: bool = False, inExtremumType: ExtremumType = ExtremumType.Maximum, inInterpolationMethod: ProfileInterpolationMethod = ProfileInterpolationMethod.Quadratic4, inConsiderPlateaus: bool = True, inMinValue: float | None = None, inMaxValue: float | None = None, inLocalBlindness: LocalBlindness | None = None ) -> outLocalExtrema: list[Extremum1D]
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inProfile | Profile | Input profile | |
![]() |
inRange | Range | None | None | |
![]() |
inCyclic | bool | False | Indicates whether the last element should be considered a neighbour of the first element |
![]() |
inExtremumType | ExtremumType | ExtremumType.Maximum | Type of extremum to find |
![]() |
inInterpolationMethod | ProfileInterpolationMethod | ProfileInterpolationMethod.Quadratic4 | When interpolation is set to Quadratic each non-plateau extremum is located using a parabola fit |
![]() |
inConsiderPlateaus | bool | True | Indicates whether the result should include centers of plateau extrema |
![]() |
inMinValue | float | None | None | Minimum value of an extremum |
![]() |
inMaxValue | float | None | None | Maximum value of an extremum |
![]() |
inLocalBlindness | LocalBlindness | None | None | Defines conditions in which weaker extrema can be detected in the vicinity of stronger ones |
![]() |
outLocalExtrema | list[Extremum1D] | Extrema of the profile values |


