Skip to content
Browse files

results are more readable when we rotate the victory rates so you can…

… scan down a column
  • Loading branch information...
1 parent ef53b45 commit fb68dee2d1310cca7706a7d7f6f73e13a2cdad5a @jrochkind committed Oct 10, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/views/report/index.html.erb
View
8 app/views/report/index.html.erb
@@ -46,15 +46,15 @@
<% else %>
<% hash = @match_up_count[engine][second_engine]
count = ( hash[engine] + hash[second_engine] )
- victory_rate = hash[engine].to_f / count
+ second_victory_rate = hash[second_engine].to_f / count
%>
<dl class="dl-horizontal">
<dt>total</dt><dd><%= hash["count"] %></dd>
<dt class="small">tie</dt><dd class="small"><%= hash["tie_count" ] %></dd>
- <dt class="small"><%= engine %> win:</dt><dd class="small"> <%= hash[engine] %></dd>
<dt class="small"><%= second_engine %> win: </dt><dd class="small"> <%= hash[second_engine] %></dd>
- <dt> <%= engine %> rate</dt><dd><%= "%.2f" % victory_rate %></dd>
- <dt> z value </dt><dd> <%= "%.2f" % one_sample_z_test( victory_rate , count ) %></dd>
+ <dt class="small"><%= engine %> win:</dt><dd class="small"> <%= hash[engine] %></dd>
+ <dt> <%= second_engine %> rate</dt><dd><%= "%.2f" % second_victory_rate %></dd>
+ <dt> z value </dt><dd> <%= "%.2f" % one_sample_z_test( second_victory_rate , count ) %></dd>
</dl>
<% end %>

0 comments on commit fb68dee

Please sign in to comment.
Something went wrong with that request. Please try again.