Modeling uncertainty in metric space