Shape Based Function Estimation