On a Class of Bayesian Nonparametric Estimates: I. Density Estimates