1d normal distribution fit. wargning: numerical instabilities