I have put together what I thought was some simple script to calculate the Moran\'s Index for each feature in a matrix (Information_Gains_Matrix), with its corresponding weight