code: protected double smoothedProbability(Token tok, double freq, double totalWeight) 
  	{
  		return (freq + pseudoCount * backgroundProb(tok)) / (totalWeight + pseudoCount);
  	}
docs: smoothed probability of the token