New setParameters function for all metrics