Estimating Relative Density on a Metric Space