public virtual void Describe(ILogBuilder logger) { logger.AppendPair("Schema", shortName, true, "\t\t\t"); if (!description.isNullOrEmpty()) { logger.AppendComment(description); } String str_dataType = "Data type"; switch (resultType) { case FunctionResultTypeEnum.numeric: logger.AppendPair(str_dataType, "Rational number", true, "\t\t\t"); break; case FunctionResultTypeEnum.numericVectorForMultiClass: logger.AppendPair(str_dataType, "n-dimensional vector", true, "\t\t\t"); logger.AppendComment("where n=|C|, C are classes"); break; } }
public override void Describe(ILogBuilder logger) { logger.AppendPair("Schema", GetFunctionName(computation), true, "\t\t\t"); if (!description.isNullOrEmpty()) { logger.AppendComment(description); } String norm_ln = ""; switch (normalization) { case TFNormalization.divisionByMaxTF: norm_ln = "Division by max(TF) in the document"; break; case TFNormalization.squareRootOfSquareSum: norm_ln = "Square root of square sums of TFs in the document"; break; } logger.AppendPair("Normalizaton", norm_ln); }