Cool, thanks!
About your working method, since you seem to enjoy that kind of thing, you probably don't mind calculating standard deviations etc, but I have my doubts that, for the purpose of creating some cool leaderheads, knowing that precise information is 'significantly'

more useful than just having a quick look at the values of other leaders. And thus does not justify the time being spent on it. Then again, it's your time.
Finding the standard deviations and stuff didn't take too much effort. Working with some extreme settings may cause issues, though. For example, there were a lot of values that would all have the same value with the exception of one leader, and many of these exceptions happened to Gandhi for his high pacifism. In other cases, one leader will have numbers that extend off the chart.
If I were to suggest a systematic working method, it would be:
1) Find out what each XML tag in Leaderheads does.
A few of them I'll need to figure out. For example, "iDeclareWarTradeRand". Every leader has this value at 40, except for Pacal, who has it at 60.
2) With that information, have a look at all fourteen leaderheads, and try to assign a fitting value to them. First look at tag 1, then tag 2... in a systematic fashion. The goal would be to recreate to an extent the faction ideologies and leader personalities we've all come to love, NOT create a 165-dimensional matrix with fourteen points as far away from each other as possible.
Perhaps to that end it might for instance be fun to create a thread in the Apolyton SMAC forum and discuss the leader personalities with the different XML tags in mind.
We're including all 14 factions? o.o I think it would be interesting (if scary in-game) to see the ultimate war-monger Marr.
Heh. I've already imagined what bonuses the faction traits would get. Deidre -> Health. Yang -> Defensive promotions + growth. Zakharov -> Research. Morgan -> Wealth. Santiago -> Lower Experience Cost and maybe a decrease in War Weariness. Miriam -> Culture. Lal -> Happiness. Cha Dawn -> Planet Rating. Domai -> Production. Zeta 5 -> Less Maintenance of Civics or Bases or whatever. Svensgaard -> Trade Yields + Naval Prowess. Marr -> General Combat and City Attack Promotions. Roze -> Espionage Points. H'Minee -> Great People. Yeah, I figured it'd be a good idea if the factions all got unique bonuses. Even if it did mean Deidre and H'Minee didn't get direct Planet bonuses until heading for a favored civic (like Hybrid) or grabbing a unique building with an additional planet bonus or being able to build a biology lab faster than anyone else.
Speaking of civics... If we're to have more factions than civics, perhaps we could have each civic be favored by at least one faction? Better yet, might we reintroduce anti-ideologies, such that Yang can't choose Democratic, Miriam can't choose Knowledge, and H'Minee and Marr can't choose each other's favored civics? (It might help if they aren't both Planned this time.)
In any case, a major indicator here will be to make sure the player really cares whether s/he runs into Zakharov or Zeta-5, Yang or Miriam, Lal or Roze, H'Minee or Marr, Deidre or Cha Dawn...
Maybe we should start a thread discussing all this.
While figuring all this out, I hereby submit my temporary semi-solution to having the AI not all be clones of Washington. I should mention I don't know how to embed a file into a zip drive, so I decided to make a .txt version to upload here. Everyone here can get the xml just by renaming the .txt into .xml... as I imagine most of you have figured out already.
Deidre now acts much like Suryavarman and has Alexander's diplomacy music.
Yang now acts much like Qin Shi Huang and has Tokugawa's diplomacy music.
Zakharov now acts much like Peter and has Elizabeth's diplomacy music.
Morgan now acts much like Huayna Capac and has Charlemagne's diplomacy music.
Santiago now acts much like Boudica and has Roosevelt's diplomacy music.
Miriam now acts much like Isabella and has Justinian I's diplomacy music.
Lal now acts much like Gandhi and has Gilgamesh's diplomacy music.