I have a ball with the mass varying with the radius (ie. distance from the center, the closer it is to the center, the heavier it is). Let's call r the radius, f(r) is the mass at that radius distance from the center. How is the weighted mean mass of the ball calculated according to r and f(r)?

Many thanks!