The Yardley books are excellent and explain that gunfit is a compromise between several measurements.

For my part, I don't think one can do a good job on fitting one's self. Let us know if you might like recommendations for a good gunfitter and/or a good gunsmith.