Ring buffer scaling

Updates to enable the ring buffer scaling to be calculated based on average spike rates