Rank: 4326 based on 26 downloads (last 30 days) and 1 file submitted
photo

Shen Liu

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Shen Liu
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Jan 2013 Distance correlation Distance correlation calculation Author: Shen Liu statistics 26 3
  • 4.0
4.0 | 1 rating
Comments and Ratings by Shen Liu
Updated File Comments Rating
02 Jan 2013 Experimental (Semi-) Variogram calculate the isotropic and anisotropic experimental (semi-) variogram Author: Wolfgang Schwanghart

Hi Wolfgang,

I am not sure if the following had been spotted:

In Line 253, when calculating the distances for more than two dimensions, the code was
d = sqrt(sum((X(i,:)-X(j,:)).^2));

I think it should be
d = sqrt(sum((X(i,:)-X(j,:)).^2,2));
as we need the sums of the rows but not the columns. After this correction, everything works perfectly in calculating 3-dimensional variograms.

Many thanks for your function. It is absolutely fabulous!

Best regards,
Shen

Comments and Ratings on Shen Liu's Files View all
Updated File Comment by Comments Rating
13 Jun 2014 Distance correlation Distance correlation calculation Author: Shen Liu Jorge

What is he reason for validation of dimension?

13 Jun 2014 Distance correlation Distance correlation calculation Author: Shen Liu Jorge

What is he reason for validation of dimension?

13 Jun 2014 Distance correlation Distance correlation calculation Author: Shen Liu precuneus

Using bsxfun you could get this function more efficient, e.g.
A = a - bsxfun(@plus,mean(a),mean(a,2))+mean(a(:));

Contact us