本文整理汇总了C#中TableRow.Add方法的典型用法代码示例。如果您正苦于以下问题:C# TableRow.Add方法的具体用法?C# TableRow.Add怎么用?C# TableRow.Add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TableRow
的用法示例。
在下文中一共展示了TableRow.Add方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddResultToScoresTable
/// <summary>
/// The add result to scores table.
/// </summary>
/// <param name="dataset">
/// The dataset.
/// </param>
/// <param name="chemicalResult">
/// The chemical result.
/// </param>
/// <param name="target">
/// The target.
/// </param>
/// <param name="table">
/// The table.
/// </param>
/// <param name="colDef">
/// The col def.
/// </param>
/// <returns>
/// The <see cref="int"/>.
/// </returns>
public static int AddResultToScoresTable(string dataset, CrossSectionWorkflowResult chemicalResult, IImsTarget target, NumericTable table, IList<string> colDef)
{
TableRow dict = new TableRow(dataset + target);
dict.Name += "(" + chemicalResult.AnalysisStatus + ")";
dict.Add(colDef[1], chemicalResult.AverageObservedPeakStatistics.IntensityScore);
dict.Add(colDef[2], chemicalResult.AverageObservedPeakStatistics.IsotopicScore);
dict.Add(colDef[3], chemicalResult.AverageObservedPeakStatistics.PeakShapeScore);
dict.Add(colDef[0], chemicalResult.AverageVoltageGroupStability);
dict.Add(colDef[4], chemicalResult.AssociationHypothesisInfo.ProbabilityOfHypothesisGivenData);
table.Add(dict);
return 1;
}