Renamed input variable k to sps for samples per symbol to be more descriptive.