public long maxRate(){
  Long max=null;
  for (  Sample s : samples) {
    if (max == null) {
      max=new Long(s.rate());
    }
    max=Math.max(max,s.rate());
  }
  return max.longValue();
}

public long maxRate ( ) { Long max = null ; for ( Sample s : samples ) { if ( max == null ) { max = new Long ( s . rate ( ) ) ; } max = Math . max ( max , s . rate ( ) ) ; } return max . longValue ( ) ; }
returns the maximum of the message rates in the samplegroup .
