Nonparametric curve estimation :methods, theory and applications