density_ratio function

Compute Density Ratios