AddCountedWordPairsToValueLists
(
IEnumerable<CountedWordPair> oCountedWordPairs,
WordMetricUserSettings oWordMetricUserSettings,
String sGroupName,
List<GraphMetricValueOrdered> oWordPairWord1Values,
List<GraphMetricValueOrdered> oWordPairWord2Values,
List<GraphMetricValueOrdered> oWordPairCountValues,
List<GraphMetricValueOrdered> oWordPairSalienceValues,
List<GraphMetricValueOrdered> oWordPairMutualInformationValues,
List<GraphMetricValueOrdered> oWordPairGroupNameValues
)
{
Debug.Assert(oCountedWordPairs != null);
Debug.Assert(oWordMetricUserSettings != null);
Debug.Assert( !String.IsNullOrEmpty(sGroupName) );
Debug.Assert(oWordPairWord1Values != null);
Debug.Assert(oWordPairWord2Values != null);
Debug.Assert(oWordPairCountValues != null);
Debug.Assert(oWordPairSalienceValues != null);
Debug.Assert(oWordPairMutualInformationValues != null);
Debug.Assert(oWordPairGroupNameValues != null);
foreach (CountedWordPair oCountedWordPair in oCountedWordPairs)
{
if ( AddCountedWordPairToValueLists(oCountedWordPair,
oWordMetricUserSettings, oWordPairWord1Values,
oWordPairWord2Values, oWordPairCountValues,
oWordPairSalienceValues, oWordPairMutualInformationValues) )
{
oWordPairGroupNameValues.Add(
new GraphMetricValueOrdered(sGroupName) );
}
}
}