code for processing the rates probability distribution and rssi,rates scatterplot