Warning: The following command is preliminary. Its syntax may change. Be prepared to make changes to legacy scripts.

Smooth

Creates a new network data with values smoothed. The number of adjacent points smoothed is user-specified.

UI Access

From the Network Data Explorer tab, select Transforms in the NDE ribbon. Then select Smooth from the drop-down menu.

Parameters
Name Type Description
<oData> Object Data from this object is copied to a new network data and the copy is transformed.
<order> Integer

The number of adjacent points that are smoothed.

Note: The default value is 10.
<enforceCausality> Boolean Casual data is calculated before smoothing.
Note: The default value is False.
Return Value

Network IDispatch

Note: Network IDispatch is returned only if the Smooth function was successfully able to perform the smoothing operation on the supplied data and meet the maximum 0.025 error tolerance. Otherwise it will return a < null object >. The user may want to try changing other input parameters, for example, enforceCausality.

 

Python Syntax Smooth()
Python Example

oNDE = oDesktop.GetTool("ndExplorer")

oData2 = oNDE.Smooth(oData1, 3, True)