I'm working on a java class which calculates Moran's index for spatial autocorrelation. This is part of my thesis project.