reorganize test folder: tests generation with MATLAB almost OK (but suboptimal method)
[valse.git] / src / test / generate_test_data / R_test_helpers / covariance.R
CommitLineData
f8a1fd7c
BG
1covariance= function(p,a){
2 A = matrix(a, p,p)
3 for{i in 1:p}{
4 for{k in 1:p}{
5 A[i,]= A[i,]^abs(i-k)
6 }
7 }
8 return(A=A)
9}