C# Класс Smrf.NodeXL.ExcelTemplate.WordMetricCalculator2

Counts words and word pairs in a specified column.
This graph metric calculator differs from most other calculators in that it reads an arbitrary column in the Excel workbook. The other calculators look only at how the graph's vertices are connected to each other. Therefore, there is no corresponding lower-level WordMetricCalculator class in the Smrf.NodeXL.Algorithms namespace, and the word metrics cannot be calculated outside of this ExcelTemplate project.

This class uses "term" to describe either a word or a word pair. It uses the WordCounter class to count words and the class to count word pairs in a specified column. It specifies that the words be stored on one worksheet and the word pairs in another.

Наследование: GraphMetricCalculatorBase2
Показать файл Открыть проект

Открытые методы

Метод Описание
AssertValid ( ) : void
TryCalculateGraphMetrics ( IGraph graph, CalculateGraphMetricsContext calculateGraphMetricsContext, GraphMetricColumn &graphMetricColumns ) : System.Boolean
WordMetricCalculator2 ( ) : System

Initializes a new instance of the WordMetricCalculator2 class.

Защищенные методы

Метод Описание
AddCountedWordPairToValueLists ( CountedWordPair oCountedWordPair, WordMetricUserSettings oWordMetricUserSettings, List oWordPairWord1Values, List oWordPairWord2Values, List oWordPairCountValues, List oWordPairSalienceValues, List oWordPairMutualInformationValues ) : System.Boolean
AddCountedWordPairsToValueLists ( IEnumerable oCountedWordPairs, WordMetricUserSettings oWordMetricUserSettings, String sGroupName, List oWordPairWord1Values, List oWordPairWord2Values, List oWordPairCountValues, List oWordPairSalienceValues, List oWordPairMutualInformationValues, List oWordPairGroupNameValues ) : void
AddCountedWordToValueLists ( CountedWord oCountedWord, WordMetricUserSettings oWordMetricUserSettings, List oWordWordValues, List oWordCountValues, List oWordSalienceValues ) : System.Boolean
AddCountedWordsToValueLists ( IEnumerable oCountedWords, WordMetricUserSettings oWordMetricUserSettings, String sGroupName, List oWordWordValues, List oWordCountValues, List oWordSalienceValues, List oWordGroupNameValues ) : void
CountTermsInEdgeOrVertex ( IMetadataProvider oEdgeOrVertex, String sTextColumnName, WordCounter oWordCounter, WordPairCounter oWordPairCounter ) : void
CreateGraphMetricColumn ( System.Boolean bColumnIsInWordTable, String sColumnName, System.Boolean bValuesAreDouble, List oValues ) : GraphMetricColumnOrdered
CreateGraphMetricColumns ( List oWordWordValues, List oWordCountValues, List oWordSalienceValues, List oWordGroupNameValues, List oWordPairWord1Values, List oWordPairWord2Values, List oWordPairCountValues, List oWordPairSalienceValues, List oWordPairMutualInformationValues, List oWordPairGroupNameValues ) : Smrf.NodeXL.ExcelTemplate.GraphMetricColumn[]
CreateGraphMetricValueLists ( List &oWordWordValues, List &oWordCountValues, List &oWordSalienceValues, List &oWordPairWord1Values, List &oWordPairWord2Values, List &oWordPairCountValues, List &oWordPairSalienceValues, List &oWordPairMutualInformationValues ) : void
EdgesOrVerticesHaveImportedIDs ( IGraph oGraph, System.Boolean bCheckEdges ) : System.Boolean
EnumerateEdgesOrVertices ( System oEdgesOrVerticesToEnumerate, System.Boolean bAreEdges, IGraph oGraph, HashSet oUniqueImportedIDs ) : IEnumerable
EnumerateGroupsForCountingVertexTerms ( IGraph oGraph ) : IEnumerable
ShouldEnumerateEdgeOrVertex ( IMetadataProvider oEdgeOrVertex, HashSet oUniqueImportedIDs ) : System.Boolean
TryCountEdgeTermsByGroup ( IGraph oGraph, WordMetricUserSettings oWordMetricUserSettings, WordCounter oWordCounter, WordPairCounter oWordPairCounter, HashSet oUniqueImportedIDs, GraphMetricColumn &oGraphMetricColumns ) : System.Boolean
TryCountTermsNoGroups ( IGraph oGraph, WordMetricUserSettings oWordMetricUserSettings, WordCounter oWordCounter, WordPairCounter oWordPairCounter, HashSet oUniqueImportedIDs, GraphMetricColumn &oGraphMetricColumns ) : System.Boolean
TryCountVertexTermsByGroup ( IGraph oGraph, WordMetricUserSettings oWordMetricUserSettings, WordCounter oWordCounter, WordPairCounter oWordPairCounter, HashSet oUniqueImportedIDs, GraphMetricColumn &oGraphMetricColumns ) : System.Boolean

Описание методов

AddCountedWordPairToValueLists() защищенный Метод

protected AddCountedWordPairToValueLists ( CountedWordPair oCountedWordPair, WordMetricUserSettings oWordMetricUserSettings, List oWordPairWord1Values, List oWordPairWord2Values, List oWordPairCountValues, List oWordPairSalienceValues, List oWordPairMutualInformationValues ) : System.Boolean
oCountedWordPair Smrf.AppLib.CountedWordPair
oWordMetricUserSettings WordMetricUserSettings
oWordPairWord1Values List
oWordPairWord2Values List
oWordPairCountValues List
oWordPairSalienceValues List
oWordPairMutualInformationValues List
Результат System.Boolean

AddCountedWordPairsToValueLists() защищенный Метод

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
Результат void

AddCountedWordToValueLists() защищенный Метод

protected AddCountedWordToValueLists ( CountedWord oCountedWord, WordMetricUserSettings oWordMetricUserSettings, List oWordWordValues, List oWordCountValues, List oWordSalienceValues ) : System.Boolean
oCountedWord Smrf.AppLib.CountedWord
oWordMetricUserSettings WordMetricUserSettings
oWordWordValues List
oWordCountValues List
oWordSalienceValues List
Результат System.Boolean

AddCountedWordsToValueLists() защищенный Метод

protected AddCountedWordsToValueLists ( IEnumerable oCountedWords, WordMetricUserSettings oWordMetricUserSettings, String sGroupName, List oWordWordValues, List oWordCountValues, List oWordSalienceValues, List oWordGroupNameValues ) : void
oCountedWords IEnumerable
oWordMetricUserSettings WordMetricUserSettings
sGroupName String
oWordWordValues List
oWordCountValues List
oWordSalienceValues List
oWordGroupNameValues List
Результат void

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

CountTermsInEdgeOrVertex() защищенный Метод

protected CountTermsInEdgeOrVertex ( IMetadataProvider oEdgeOrVertex, String sTextColumnName, WordCounter oWordCounter, WordPairCounter oWordPairCounter ) : void
oEdgeOrVertex IMetadataProvider
sTextColumnName String
oWordCounter WordCounter
oWordPairCounter WordPairCounter
Результат void

CreateGraphMetricColumn() защищенный Метод

protected CreateGraphMetricColumn ( System.Boolean bColumnIsInWordTable, String sColumnName, System.Boolean bValuesAreDouble, List oValues ) : GraphMetricColumnOrdered
bColumnIsInWordTable System.Boolean
sColumnName String
bValuesAreDouble System.Boolean
oValues List
Результат GraphMetricColumnOrdered

CreateGraphMetricColumns() защищенный Метод

protected CreateGraphMetricColumns ( List oWordWordValues, List oWordCountValues, List oWordSalienceValues, List oWordGroupNameValues, List oWordPairWord1Values, List oWordPairWord2Values, List oWordPairCountValues, List oWordPairSalienceValues, List oWordPairMutualInformationValues, List oWordPairGroupNameValues ) : Smrf.NodeXL.ExcelTemplate.GraphMetricColumn[]
oWordWordValues List
oWordCountValues List
oWordSalienceValues List
oWordGroupNameValues List
oWordPairWord1Values List
oWordPairWord2Values List
oWordPairCountValues List
oWordPairSalienceValues List
oWordPairMutualInformationValues List
oWordPairGroupNameValues List
Результат Smrf.NodeXL.ExcelTemplate.GraphMetricColumn[]

CreateGraphMetricValueLists() защищенный Метод

protected CreateGraphMetricValueLists ( List &oWordWordValues, List &oWordCountValues, List &oWordSalienceValues, List &oWordPairWord1Values, List &oWordPairWord2Values, List &oWordPairCountValues, List &oWordPairSalienceValues, List &oWordPairMutualInformationValues ) : void
oWordWordValues List
oWordCountValues List
oWordSalienceValues List
oWordPairWord1Values List
oWordPairWord2Values List
oWordPairCountValues List
oWordPairSalienceValues List
oWordPairMutualInformationValues List
Результат void

EdgesOrVerticesHaveImportedIDs() защищенный Метод

protected EdgesOrVerticesHaveImportedIDs ( IGraph oGraph, System.Boolean bCheckEdges ) : System.Boolean
oGraph IGraph
bCheckEdges System.Boolean
Результат System.Boolean

EnumerateEdgesOrVertices() защищенный Метод

protected EnumerateEdgesOrVertices ( System oEdgesOrVerticesToEnumerate, System.Boolean bAreEdges, IGraph oGraph, HashSet oUniqueImportedIDs ) : IEnumerable
oEdgesOrVerticesToEnumerate System
bAreEdges System.Boolean
oGraph IGraph
oUniqueImportedIDs HashSet
Результат IEnumerable

EnumerateGroupsForCountingVertexTerms() защищенный Метод

protected EnumerateGroupsForCountingVertexTerms ( IGraph oGraph ) : IEnumerable
oGraph IGraph
Результат IEnumerable

ShouldEnumerateEdgeOrVertex() защищенный Метод

protected ShouldEnumerateEdgeOrVertex ( IMetadataProvider oEdgeOrVertex, HashSet oUniqueImportedIDs ) : System.Boolean
oEdgeOrVertex IMetadataProvider
oUniqueImportedIDs HashSet
Результат System.Boolean

TryCalculateGraphMetrics() публичный Метод

public TryCalculateGraphMetrics ( IGraph graph, CalculateGraphMetricsContext calculateGraphMetricsContext, GraphMetricColumn &graphMetricColumns ) : System.Boolean
graph IGraph
calculateGraphMetricsContext CalculateGraphMetricsContext
graphMetricColumns GraphMetricColumn
Результат System.Boolean

TryCountEdgeTermsByGroup() защищенный Метод

protected TryCountEdgeTermsByGroup ( IGraph oGraph, WordMetricUserSettings oWordMetricUserSettings, WordCounter oWordCounter, WordPairCounter oWordPairCounter, HashSet oUniqueImportedIDs, GraphMetricColumn &oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oWordMetricUserSettings WordMetricUserSettings
oWordCounter WordCounter
oWordPairCounter WordPairCounter
oUniqueImportedIDs HashSet
oGraphMetricColumns GraphMetricColumn
Результат System.Boolean

TryCountTermsNoGroups() защищенный Метод

protected TryCountTermsNoGroups ( IGraph oGraph, WordMetricUserSettings oWordMetricUserSettings, WordCounter oWordCounter, WordPairCounter oWordPairCounter, HashSet oUniqueImportedIDs, GraphMetricColumn &oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oWordMetricUserSettings WordMetricUserSettings
oWordCounter WordCounter
oWordPairCounter WordPairCounter
oUniqueImportedIDs HashSet
oGraphMetricColumns GraphMetricColumn
Результат System.Boolean

TryCountVertexTermsByGroup() защищенный Метод

protected TryCountVertexTermsByGroup ( IGraph oGraph, WordMetricUserSettings oWordMetricUserSettings, WordCounter oWordCounter, WordPairCounter oWordPairCounter, HashSet oUniqueImportedIDs, GraphMetricColumn &oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oWordMetricUserSettings WordMetricUserSettings
oWordCounter WordCounter
oWordPairCounter WordPairCounter
oUniqueImportedIDs HashSet
oGraphMetricColumns GraphMetricColumn
Результат System.Boolean

WordMetricCalculator2() публичный Метод

Initializes a new instance of the WordMetricCalculator2 class.
public WordMetricCalculator2 ( ) : System
Результат System