The function is applied to a pair of matrices in order to split them into NxN pixel frames and calculate respective matrices of frame means, there N is specified by user
1  utild2group(d2arr0, d2arr1, radius = 1, method = "split1")

d2arr0 
original matrix 
d2arr1 
original matrix 
radius 
sets the size of a single frame as N=(2*radius+1) points/pixels 
method 
sets the division of original array by a sequence of frames in different manner

group0 
matrix containing mean values of individual frames the original d2arr0 was divided by 
group1 
matrix containing mean values of individual frames the original d2arr1 was divided by 
Vitaly Efremov <vitaly.efremov@dcu.ie>
1 2 3 4 5 6 7  s0<array(c(1,1,3,7,10),c(14,12))
s1<array(c(1:156),c(12,13))
s0; s1
a<utild2group(d2arr0=s0, d2arr1=s1); a
a<utild2group(s0, s1, radius=2, method='splitN'); a
a<utild2group(s0, s1, radius=3); a

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.