updated estimators.h (if/else added)

I have changed the file estimators.h.