I have a rating system in comments, for each comment user can rate 1-5 Stars.
Now, what I want is the average ratings of the comments for each post.
Here is the link to the code file related to My rating System. Current Users can rate and comment, but I want the average of all comment ratings in that post. And this is a custom Post type.
Here's the link: http://pastebin.com/LcRyjSPK
From glancing at your code it seems the average rating should already be available. Is there a specific problem you're running into trying to access that data...? Is it not there, incorrect, are you getting php errors?
More info please.