title: How To Normalize Array Between 1 and 10?
body: <p>I have a numpy array with the following integer numbers: </p>
  
  <pre><code>[10 30 16 18 24 18 30 30 21 7 15 14 24 27 14 16 30 12 18]
  </code></pre>
  
  <p>I want to normalize them to a range between 1 and 10. </p>
  
  <p>I know that the general formula to normalize arrays is:</p>
  
  <p><a href="https://i.stack.imgur.com/gztOl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gztOl.png" alt="enter image description here"></a></p>
  
  <p>But how am I supposed to scale them between 1 and 10?</p>
  
  <p><strong>Question:</strong> What is the simplest/fastest way to normalize this array to values between 1 and 10? </p>