protected double calculateLogCoalescentLikelihood(){
  makeIntervalsKnown();
  double currentLike=0;
  double[] currentGamma=popSizeParameter.getParameterValues();
  for (int i=0; i < fieldLength; i++) {
    currentLike+=-currentGamma[i] - sufficientStatistics[i] * Math.exp(-currentGamma[i]);
  }
  return currentLike;
}

protected double calculateLogCoalescentLikelihood ( ) { makeIntervalsKnown ( ) ; double currentLike = 0 ; double [ ] currentGamma = popSizeParameter . getParameterValues ( ) ; for ( int i = 0 ; i < fieldLength ; i ++ ) { currentLike += - currentGamma [ i ] - sufficientStatistics [ i ] * Math . exp ( - currentGamma [ i ] ) ; } return currentLike ; }
calculates the log likelihood of this set of coalescent intervals , given a demographic model .
