changed minimum of parameter min-mean-tdf to 0.0
removed unnecessary min operation