Skip to content

Incorect PGD Index equation #4

@dervinism

Description

@dervinism

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)));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions