title: How to calculate average using jq from JSON output
body: <p>This is the exact JSON for which i am trying to parse with jq to get an average</p>
  
  <pre><code>{
      "Label": "CPUUtilization",
      "Datapoints": [
          {
              "Timestamp": "2020-02-20T18:35:00Z",
              "Unit": "Percent",
              "ExtendedStatistics": {
                  "p80": 7.39284928374
              }
          },
          {
              "Timestamp": "2020-02-20T18:00:00Z",
              "Unit": "Percent",
              "ExtendedStatistics": {
                  "p80": 2.234234
              }
          },
          {
              "Timestamp": "2020-02-20T18:45:00Z",
              "Unit": "Percent",
              "ExtendedStatistics": {
                  "p80": 2.4567
              }
          },
          {
              "Timestamp": "2020-02-20T18:50:00Z",
              "Unit": "Percent",
              "ExtendedStatistics": {
                  "p80": 2.0
              }
          },
  
          {
              "Timestamp": "2020-02-20T18:20:00Z",
              "Unit": "Percent",
              "ExtendedStatistics": {
                  "p80": 2.0
              }
          }
      ]
  }
  </code></pre>
  
  <p>Using <code>.Datapoints[]|select(.ExtendedStatistics.p80 &gt;=0  )| [.ExtendedStatistics.p80] | @tsv</code> 
  gives me</p>
  
  <pre><code>"7.39284928374"
  "2.234234"
  "2.4567"
  "2"
  "2" 
  </code></pre>
  
  <p>I am trying to get an average of all the numbers
  How do i get a single number as output 
  <strong>Expected Output</strong></p>
  
  <pre><code>3.216756656748
  </code></pre>
  
  <p>Calculated as </p>
  
  <pre><code>Average:    16.08378328374 / 5 = 3.216756656748
  </code></pre>