-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Are you using the correct PGD Index equation in the code? The one that is in the paper is different. It seems that the following lines in the GradientMethod function
Mag_of_MeanGrad = sqrt(sum(nansum(Gx(:,:,TrailTime)))^2+sum(nansum(Gy(:,:,TrailTime)))^2);
Mean_of_MagGrad = sum(nansum(sqrt(Gx(:,:,TrailTime).^2+Gy(:,:,TrailTime).^2)));
PGD(TrailTime) = Mag_of_MeanGrad/Mean_of_MagGrad;
should be replaced with this line
PGD(TrailTime) = (sum(nansum(Gx(:,:,TrailTime).*Gy(:,:,TrailTime))))/sqrt(sum(nansum(Gx(:,:,TrailTime).^2))*sum(nansum(Gy(:,:,TrailTime).^2)));
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels