Method: Bio::ContingencyTable#column_sum_all

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

#column_sum_allObject

Report the sum of all values in all columns.

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


Arguments

  • none

Returns

Integer sum of all columns



294
295
296
297
298
# File 'lib/bio/util/contingency_table.rb', line 294

def column_sum_all
  total = 0
  @characters.each { |j| total += column_sum(j) }
  total
end