utild2clean: Matrix Cleaner

Description Usage Arguments Value Author(s) See Also Examples

View source: R/stheoreme.R

Description

Function utild2clean is applied to a pair of matrices and clean them from outliers with a rule specified by user (outliers will be replaced by the threshold values)

Usage

1
utild2clean(d2arr0, d2arr1, method = "bothends", nsigma = 3)

Arguments

d2arr0

matrix to be cleaned

d2arr1

matrix to be cleaned

method

specifies if outliers are to be removed from one or both side of matrix value distribution

method='bothends' remove outliers from both side of a distribution (default)

method='left' remove outliers from left side

method='right' remove outliers from right side

nsigma

number of sigmas to be considered as threshold for outlier removal

Value

clean0

result of d2arr0 cleaning

clean1

result of d2arr1 cleaning

Author(s)

Vitaly Efremov <[email protected]>

See Also

utild1clean

Examples

1
2
3
4
5
6
s0<-array(c(-1,1,3,7,10),c(2,5))
s1<-array(c(rep(c(1,2),7),20), c(5,3))

s0;s1
a<-utild2clean(d2arr0=s0, d2arr1=s1); a
a<-utild2clean(s0, s1, method='left', nsigma=0.3); a

stheoreme documentation built on May 2, 2019, 9:33 a.m.