LOCALCORRELATION Computes local correlation matrices for each som unit CALLS [Rj,Cj,Rmat,names] = localcorrelation(p,smap,sigma) INPUTS p: data matrix (R x N) smap: UnioviSOM SOM struct sigma: Width factor in local neighborhood OUTPUTS Rj: n-array of size (R x R x 10000) one local correlation matrix per SOM unit Cj: n-array of size (R x R x 10000) one local covariance matrix per SOM unit Rmat: Matrix of size (R^2 x 10000) one column per SOM unit names: List with R^2 labels corresponding to each couple of variables Example of usage: [Rj,Cj,Rmat,names] = localcorrelation(pn,smap,0.8) planes(pos,Rmat,names);