Method: Bio::ContingencyTable#row_sum_all

Defined in:
lib/bio/util/contingency_table.rb

#row_sum_allObject Also known as: table_sum_all

Report the sum of all values in all rows.

  • This is the same thing as asking for the sum of all values in the table.


Arguments

  • none

Returns

Integer sum of all rows



308
309
310
311
312
# File 'lib/bio/util/contingency_table.rb', line 308

def row_sum_all
  total = 0
  @characters.each { |i| total += row_sum(i) }
  total
end