A class of robust estimators