two_cluster_weighting: placement of switch weights was inconsistent with locations where downsampled data were taken from, which causes a slight misalignment for some downsample levels, and also a crash due to wrong indexing for some valid input parameters (e.g. downsample 5 for 60 Hz data and a .2 s window)