question: public long avgRate ( ) { long sum = 0L ; for ( Sample s : samples ) { sum += s . rate ( ) ; } return ( long ) ( sum / ( long ) samples . size ( ) ) ; }
target:  Returns the average of the message rates in the SampleGroup.