public double getRunningAverageRssi() {
        int sum = 0;
        int count = 0;

        synchronized (mRssiLog) {

            for (final Long aLong : mRssiLog.keySet()) {
                count++;
                sum += mRssiLog.get(aLong);
            }
        }

        if (count > 0) {
            return sum / count;
        } else {
            return 0;
        }

    }
Gets the running average rssi.

@return the running average rssi
library/src/main/java/dev/alt236/bluetoothlelib/device/BluetoothLeDevice.java