Skip to content

Commit

Permalink
Rephrased report output
Browse files Browse the repository at this point in the history
  • Loading branch information
T. Alexander Lystad committed Jan 12, 2012
1 parent 85497b3 commit cae72e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions passpal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ def report
['digits', ((@results[:d][0].to_f/sum_0)*100).round(4).to_s+' %', ((@results[:d][1].to_f/sum_1)*100).round(4).to_s+' %', ((@results[:d][2].to_f/sum_2)*100).round(4).to_s+' %', ((@results[:d][-3].to_f/sum_m3)*100).round(4).to_s+' %', ((@results[:d][-2].to_f/sum_m2)*100).round(4).to_s+' %', ((@results[:d][-1].to_f/sum_m1)*100).round(4).to_s+' %'],
['symbols', ((@results[:s][0].to_f/sum_0)*100).round(4).to_s+' %', ((@results[:s][1].to_f/sum_1)*100).round(4).to_s+' %', ((@results[:s][2].to_f/sum_2)*100).round(4).to_s+' %', ((@results[:s][-3].to_f/sum_m3)*100).round(4).to_s+' %', ((@results[:s][-2].to_f/sum_m2)*100).round(4).to_s+' %', ((@results[:s][-1].to_f/sum_m1)*100).round(4).to_s+' %'],
],
:column_names => ['Type\Index', '0 (first)', 1, 2, -3, -2, '-1 (last)']
:column_names => ['Charset\Index', '0 (first)', 1, 2, -3, -2, '-1 (last)']
})
"Type distribution of characters in beginning and end of words (len>=6)\n" + table_f.to_s
"Charset distribution of characters in beginning and end of words (len>=6)\n" + table_f.to_s
end
end

Expand Down

0 comments on commit cae72e9

Please sign in to comment.