You are here: Start » AVL.NET » AVL.SmoothPath_Mean(AvlNet.Path, int, AvlNet.Path)

AVL.SmoothPath_Mean(AvlNet.Path, int, AvlNet.Path)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void SmoothPath_Mean(
	AvlNet.Path inPath,
	int inKernelRadius,
	out AvlNet.Path outPath
)

Parameters

inPath
Type: AvlNet.Path
inKernelRadius
Type: System.Int32
outPath
Type: AvlNet.Path

Description

The operation replaces each characteristic point of the path with the local average, thus smoothing its shape. The local average is computed as a simple arithmetic mean of the consecutive 2*inKernelRadius + 1 characteristic points.

Examples

A sample path

SmoothPath_Mean run on the sample path with inKernelRadius = 1.

SmoothPath_Mean run on the sample path with inKernelRadius = 3.

Errors

Error type Description
DomainError Kernel size exceeds the number of points in a path in SmoothPath_Mean.

See also