ambur.smooth: Smooth a single polyline

View source: R/ambur.smooth.R

ambur.smoothR Documentation

Smooth a single polyline

Description

Smooth a single polyine in a shapefile using a local polynomial fitting algorithm.

Usage

ambur.smooth(alpha = 0.7, degree = 2, sampledist = 5, presamp = 1)

Arguments

alpha

Alpha value for smoothing

degree

Degree of polynomial

sampledist

Sampling distance along the original polyline

presamp

Perform sampling along the original polyline. 1 = yes and 0 = no

Details

A polyline is smoothed using a local polynomial fit based on a modified 'locfit' algorithm. See the 'locfit' package for details on the original 'locfit' function.

Value

A shapefile with a smoothed polyline.

Note

~~ This function is a beta version ~~


ambur documentation built on April 4, 2022, 3:01 a.m.