public void addRecord(String messageId,int i,double d){
  if (m_msgData == null) {
    m_msgData=new TreeMap<String,LogNormalScore.MsgData>();
    m_minLambda=1;
  }
  final MsgData data=new MsgData();
  data.m_totalLogCounts=i;
  data.m_lambda=d;
  m_msgData.put(messageId,data);
  m_minLambda=Math.min(data.m_lambda,m_minLambda);
  m_totalIntervalCount=1;
}

public void addRecord ( String messageId , int i , double d ) { if ( m_msgData == null ) { m_msgData = new TreeMap < String , LogNormalScore . MsgData > ( ) ; m_minLambda = 1 ; } final MsgData data = new MsgData ( ) ; data . m_totalLogCounts = i ; data . m_lambda = d ; m_msgData . put ( messageId , data ) ; m_minLambda = Math . min ( data . m_lambda , m_minLambda ) ; m_totalIntervalCount = 1 ; }
add in a new record i . e . a new msgdata into the mapping .
