A right circular cylinder has a radius of r units and a height equal to its diameter. A sphere fits tightly inside the cylinder, touching the top, bottom and curved surface. What is the ratio of the volume of the cylinder to the volume of the sphere?