title: NumPy: how to "scale" an array "smoothly"
body: <p>Say I have a numpy array like this</p>
  <pre><code>array([1, 3, 5, 7, 9, 11])
  </code></pre>
  <p>And I would like to &quot;scale&quot; it by a factor of two, filling in the &quot;gaps&quot; using the mean of two adjacent numbers. Result:</p>
  <pre><code>array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 11])
  </code></pre>
  <p>Anyone knows how to do this?</p>