private Dictionary<string, double> GetDistributionOfStringsForChar(OptChar c, Classification classification)
{
OptChar key = c;
Dictionary<string, double> distribution;
//Generate the probability distribution based on the classification, which contains counts of observations
distribution = GenerateDistributionForChar(key, classification);
//If our dictionary does not have any information about this character, we return the character with probability 1.0
if (distribution.Count == 0)
{
distribution.Add("" + c.Value, 1.0);
}
return distribution;
}