You are here: Start » AVL.NET » AVL.DifferentiateProfile(AvlNet.Profile, bool, AvlNet.DifferentiationMethod, AvlNet.Profile)

AVL.DifferentiateProfile(AvlNet.Profile, bool, AvlNet.DifferentiationMethod, AvlNet.Profile)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


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

Parameters

inProfile
Type: AvlNet.Profile
inCyclic
Type: System.Boolean
inDifferentiationMethod
Type: AvlNet.DifferentiationMethod
outDerivative
Type: AvlNet.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