compelted 1d fit function reweighting