peice wise gaussian