calculateWeightsGSCAm function

Calculate weights using GSCAm