I calculated it before but here´s the darwin code for that
Freq := CreateArray(1..20,0):
Tot := sum(sum(CountMatrix)):
for i to 20 do
Freq[i] := sum(CountMatrix[i])/Tot:
od:
print(Freq);
[0.08477395, 0.05103334, 0.03837665, 0.05740129, 0.01256165, 0.0347174
+6,
0.06883297, 0.07907659, 0.02077239, 0.06813598, 0.08906677, 0.06501537
+,
0.02318017, 0.03823936, 0.04036729, 0.05668318, 0.05721648, 0.00871765
+,
0.02785317, 0.07797831]
PercentageMutation := 100 * sum(Freq[i] * (1 - MutationMatrix[i,i]),i=
+1..20);
PercentageMutation := 44.5302
And the Mutationmatrix is the matrix i wrote in the Perl Code
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.