utild1group: Vector Framer

Description Usage Arguments Value Author(s) See Also Examples

View source: R/stheoreme.R

Description

The function is applied to a pair of vectors in order to split them into N-point frames and calculate respective arrays of N-point frame means, there N is specified by user

Usage

1
utild1group(arr0, arr1, radius = 1, method = "split1")

Arguments

arr0

original vector

arr1

original vector

radius

sets the size of a single frame as N=(2*radius+1) points

method

sets the division of original array by a sequence of frames in different manner

method='split1' (the default) sets a sequence of frames as: frame1(1...N), frame2(N+1,..2*N), etc

method='splitN' sets a sequence of frames as: frame1(1...N), frame2(2,..N+1), frame3(3,..N+2), etc

Value

group0

array containing mean values of individual frames the original arr0 was divided by

group1

array containing mean values of individual frames the original arr1 was divided by

Author(s)

Vitaly Efremov <vitaly.efremov@dcu.ie>

See Also

utild2group

Examples

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

s0; s1
a<-utild1group(arr0=s0, arr1=s1); a
a<-utild1group(s0, s1, radius=2); a
a<-utild1group(s0, s1, radius=2, method='splitN'); a

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