Smrf.NodeXL.ExcelTemplate.WordMetricCalculator2.AddCountedWordPairsToValueLists C# (CSharp) Method

AddCountedWordPairsToValueLists() protected method

protected AddCountedWordPairsToValueLists ( IEnumerable oCountedWordPairs, WordMetricUserSettings oWordMetricUserSettings, String sGroupName, List oWordPairWord1Values, List oWordPairWord2Values, List oWordPairCountValues, List oWordPairSalienceValues, List oWordPairMutualInformationValues, List oWordPairGroupNameValues ) : void
oCountedWordPairs IEnumerable
oWordMetricUserSettings WordMetricUserSettings
sGroupName String
oWordPairWord1Values List
oWordPairWord2Values List
oWordPairCountValues List
oWordPairSalienceValues List
oWordPairMutualInformationValues List
oWordPairGroupNameValues List
return void
    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) );
            }
        }
    }