Learn R Programming

stheoreme (version 1.2)

utild2clean: Matrix Cleaner

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

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

See Also

utild1clean

Examples

Run this code
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

Run the code above in your browser using DataLab