purity measure def upd