Sum the ilvl of each item... divide by the amount of ilvl you input... = average.

I will agree with the weighting... Should have more lean with weapons, since that gives the most "ability/strength". you see that DL weapon guy, gonna be a bad day.