pure functiondensity_psxi