Template:Index/author
From Metabolomics.JP
(Difference between revisions)
Line 10: | Line 10: | ||
<hr> | <hr> | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
− | ! Author || #articles || earliest<br> | + | ! Author || #articles || earliest<br>paper || latest<br>paper || peak year || standard<br>deviation |
{{#repeat:TableRow6/author|6| | {{#repeat:TableRow6/author|6| | ||
{{#cdr: | {{#cdr: | ||
Line 40: | Line 40: | ||
local tmp = H[name]; | local tmp = H[name]; | ||
local count = 0; | local count = 0; | ||
− | local | + | local peakDist = {}; |
− | + | ||
local earliest = 3000; | local earliest = 3000; | ||
local latest = 0; | local latest = 0; | ||
Line 48: | Line 47: | ||
if (latest < v) then latest = v; end | if (latest < v) then latest = v; end | ||
count = count + 1; | count = count + 1; | ||
− | + | for i=v-2,v+2 do | |
+ | if (peakDist[i] == nil) | ||
+ | then peakDist[i] = 3-math.abs(v-i); | ||
+ | else peakDist[i] = peakDist[i] + 3-math.abs(v-i); | ||
+ | end | ||
+ | end | ||
end | end | ||
− | + | local peak = 0; | |
− | for k,v in pairs( | + | local peakY = 0; |
− | + | for k,v in pairs(peakDist) do | |
+ | if (v > peak) then peakY = v; peak = v; end | ||
end | end | ||
− | |||
ret = ret .. "&&" .. name .. | ret = ret .. "&&" .. name .. | ||
"&&" .. count .. "&&" .. earliest .. "&&" .. latest .. | "&&" .. count .. "&&" .. earliest .. "&&" .. latest .. | ||
− | "&&" .. | + | "&&" .. peakY .. |
− | "&&" .. | + | "&&" .. .. "\n"; |
end | end | ||
print(ret); | print(ret); |
Revision as of 12:18, 6 October 2008
著者名のインデクス {{{1}}} 値(文字列) {{{2}}} ページタイトル (FL/LB/..)
This page is automatically generated using Persist function (Last updated: 20081006121812).
[[Index:{{{2}}}|Back to Index]] |
Author | #articles | earliest paper |
latest paper |
peak year | standard deviation |
---|