title: Gnuplot summing y values for same x values
body: <p>I have a dataset which looks like this:</p>
  
  <pre><code>0 1 0.1
  0 0 0.1
  0 1 0.1
  1 0 0.2
  0 1 0.2
  1 0 0.2
  ...
  </code></pre>
  
  <p>I now want to do the following operations on each different value in the third column of the table:</p>
  
  <p>Example for 0.1:</p>
  
  <p>First column values summed: 0+0+0=0</p>
  
  <p>Second column values summed: 1+0+1=2 </p>
  
  <p>Now I want to substract these two 2-0=2 and in a last step divide them by the occurrences.</p>
  
  <p>2/3 =0.667</p>
  
  <p>The same for 0.2 and my plot should then plot at x=0.1, y=0.667.</p>
  
  <p>I hope my problem is with the example understandable.</p>