You are here: Start » AVL.NET » Function Reference » Profile » Profile Local Transforms » AVL.DifferentiateProfile

AVL.DifferentiateProfile

Computes the derivative of a profile.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void DifferentiateProfile
(
	AvlNet.Profile inProfile,
	bool inCyclic,
	AvlNet.DifferentiationMethod inDifferentiationMethod,
	AvlNet.Profile outDerivative
)

Parameters

Name Type Range Default Description
inProfileAvlNet.ProfileInput profile.
inCyclicboolDefines whether to compute differences between first and last elements.
inDifferentiationMethodAvlNet.DifferentiationMethodCentralDefault value: Central.
outDerivativeAvlNet.Profile

Description

Computes finite difference of profile using forward, backward or central difference method. If inCyclic is False then depending of chosen difference method values for first or last element of inProfile is undefined and thus outermost values are doubled when necessary.

For instance, in forward difference method, last element of derivative profile is always zero. In backward difference method, first element is always zero.

Examples

On the left DifferentiateProfile with inCyclic = False, inDifferentiationMethod = Forward performed on profile being shown on the right.

See also