rmoutlier1d: Remove the Outliers in a Vector of 1D Coordinates

Description Usage Arguments Examples

View source: R/rmoutlier1d.R

Description

Remove the Outliers in a Vector of 1D Coordinates

Usage

1
rmoutlier1d(x, dy_thr = dnorm(4), clustersize_thr = 3, gapsize = 10)

Arguments

x

a numeric vector

dy_thr

the threshold for dy

clustersize_thr

the threshold for cluster size

gapsize

the threshold of points in recognizing data free gap

Examples

1
2
3
4
x=c(1,10:30,50)
par(mfrow=c(2,1))
plot(density(x))
plot(density(rmoutlier1d(x)))

l1kdeconv documentation built on May 2, 2019, 10:16 a.m.