calculation of the radial density distribution in MS

Hi, everyone,

For a spherical structure or system (such as micelle), the radial density distribution is a very importnat parameter used to describe the microscopic structures (density profile). In some literatures, the radial density distribution is expressed as

1.png     or     2.png

However, I don't know how to calculate the radial density distribution in Materials Studio. Could someone help me to calculate the parameter of tell me how to do this?

Thank you very much!