You are here: Start » AVL.NET » AVL.ProfileLocalExtrema Method

AVL.ProfileLocalExtrema Method

Finds the locations at which the values of the input profile are locally highest or lowest.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ProfileLocalExtrema(
	AvlNet.Profile inProfile,
	bool inCyclic,
	AvlNet.ExtremumType inExtremumType,
	AvlNet.ProfileInterpolationMethod inInterpolationMethod,
	bool inConsiderPlateaus,
	float? inMinValue,
	float? inMaxValue,
	out int[] outExtremumIndices,
	out float[] outExtremumPoints,
	out float[] outExtremumValues
)

Parameters

Name Type Range Default Description
inProfileAvlNet.ProfileInput profile.
inCyclicboolIndicates whether the last element should be considered a neighbour of the first element.
inExtremumTypeAvlNet.ExtremumTypeType of extremum to find.
inInterpolationMethodAvlNet.ProfileInterpolationMethodQuadratic4When interpolation is set to Quadratic each non-plateau minimum is located using a parabola fit. Default value: Quadratic4.
inConsiderPlateausboolTrueIndicates whether the result should include centers of plateau minima. Default value: True.
inMinValuefloat?Minimum value of an extremum. Default value: atl::NIL, or null.
inMaxValuefloat?Maximum value of an extremum. Default value: atl::NIL, or null.
outExtremumIndicesintIndices of the profile values representing each minimum
outExtremumPointsfloatPrecise location of the profile minima.
outExtremumValuesfloatValue of each minimum.

See also