Possibilty to use median instead of the sigma of gaus fit