Take the feature's weight into account