Code covered by the BSD License
-
Contest Statistics
-
activityByHour(s,contestName)
-
addContourLines(orders,mi,ma,...
Calculate score surface.
-
dailyActivity(p)
Highlighting all the entries submitted on each day in red shows shows how
-
entryLength(p)
-
final(scoreResults,timeResult...
FINAL Calculates the overall entry score based on results, time,
-
getMilestones(contestName)
-
labelCornerPoints(xx,yy,autho...
-
lightGray
-
mostActive(s)
-
normalize(y,orders,mi,ma)
-
parents(s,p,orders)
-
participantsByDay(s)
-
percentImprovement(leaders)
Find positions of all potential labels.
-
prepareData
Rename some fields.
-
reverse(y,orders,mi,ma)
-
scoreStair(p,orders)
Plot all entries.
-
submissionsOverTime(s)
Make sure the right edges match.
-
zigzag(p,orders)
Plot entries.
-
View all files
from
MATLAB Contest Statistics
by Matthew Simoneau
The code used to generate the "Statistics" page for the MATLABĀ® Contest.
|
| participantsByDay(s) |
function participantsByDay(s)
d = [s.date];
authorBins = floor(d(1)):1:ceil(d(end));
authorCount = zeros(size(authorBins));
for i = 1:length(authorBins)-1;
thisBin = s((authorBins(i)<=[s.date]) & ([s.date] < authorBins(i+1)));
authorCount(i) = length(unique({thisBin.author}));
end
nonempty = find(authorCount ~= 0);
range = min(nonempty):max(nonempty);
clf
drawnow
bar(authorBins(range)+(authorBins(2)-authorBins(1))/2,authorCount(range),'FaceColor','b','EdgeColor','b')
box on
datetick
hold on
set(gca,'GridLineStyle','-')
xlabel('day')
ylabel('unique participants')
title('Participation by Day')
|
|
Contact us at files@mathworks.com