private Double GetDivisor(TokenDictionary document) { if (document.Count == 0) { return(1); } switch (normalization) { case TFNormalization.squareRootOfSquareSum: return(document.GetSquareRootOfSumSquareFrequencies()); break; default: case TFNormalization.divisionByMaxTF: return(document.GetMaxFrequency()); break; } }