lib/pg_histogram/histogram.rb
# returns histogram as hash
# bucket minimum as a key
# frequency as value
returns histogram as hash
bucket minimum as a key
frequency as value
returns histogram as hash bucket minimum as a key frequency as value
def results
      if max == min
        { min => subquery.where("#{pure_column} = ?", min).count }
      else
        labeled_histogram
      end
    end
def results if max == min { min => subquery . where ( "#{pure_column} = ?" , min ) . count } else labeled_histogram end end
returns histogram as hash
bucket minimum as a key
frequency as value
returns histogram as hash bucket minimum as a key frequency as value
# error handling case