def prob_ao_to_h a, o
      h = Hash.new
      a.each_with_index { |v,i| h[i+o] = v if v > 0.0 }
      h
    end
def prob_ao_to_h a, o
      h = Hash.new
      a.each_with_index { |v,i| h[i+o] = v if v > 0.0 }
      h
    end
Convert array,offset notation to hash