ProfileMaximum


Finds the highest value of the input profile, its precise location and the corresponding index.

Syntax

C++
C#
Python
 
def ProfileMaximum(
	inProfile: Profile,
	/,
	*,
	inRange: Range | None = None,
	inInterpolationMethod: ProfileInterpolationMethod = ProfileInterpolationMethod.Quadratic4
)
-> (
	outMaximumPoint: float,
	outMaximumIndex: int,
	outMaximumValue: float
)

Parameters

Name Type Default Description
Input value inProfile Profile Input profile
Input value inRange Range | None None
Input value inInterpolationMethod ProfileInterpolationMethod ProfileInterpolationMethod.Quadratic4 Profile points' interpolation method
Output value outMaximumPoint float Position of highest value with respect to profile's offset and scale
Output value outMaximumIndex int Index of highest value
Output value outMaximumValue float Highest value