Displaying 1 result from an estimated 1 matches for "autocdata".
2010 Mar 24
3
help in matlab - r code
...eWidth-MaxOffset; # =2R defined variable
for Offset = 1:MaxOffset ; loop to calculate the autocorrelation. basicly,
they do cor2, which I think is Spearman correlation, between every column
and store it in the vector position???
OffsetPlaquette = data(:,1+Offset:ImageWidthToProcess+Offset);
AutoCData(Offset) = corr2(data(:,1:ImageWidthToProcess),
OffsetPlaquette)
end
# IN R would be... but it is not correct! What would be the results in
matlab? and how to do it in R?
for(Offset in 1:MaxOffset){
OffsetPlaquette = x[,1+Offset:ImageWidthToProcess+Offset]
AutoCData[Offset] = cor(c(x[,1:Ima...