def ranked
      sum = 0
      r = self.frequencies.sort.reduce({}) do |memo, val|
        memo[val[0]] = ((sum+1) + (sum+val[1]))/2
        sum += val[1]
        memo
      end
      Mikon::DArray.new(self.reduce{|val| r[val]})
    end
def ranked
      sum = 0
      r = self.frequencies.sort.reduce({}) do |memo, val|
        memo[val[0]] = ((sum+1) + (sum+val[1]))/2
        sum += val[1]
        memo
      end
      Mikon::DArray.new(self.reduce{|val| r[val]})
    end
?