Click or drag to resize

IWeightTable Interface

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Table of terms and frequencies on the document level

Namespace:  imbSCI.DataComplex
Assembly:  imbSCI.DataComplex (in imbSCI.DataComplex.dll) Version: 0.3.70.
Syntax
C#
public interface IWeightTable : IEnumerable<IWeightTableTerm>, 
	IEnumerable, IObjectWithName
Request Example View Source

The IWeightTable type exposes the following members.

Properties
  NameDescription
Public propertymax
Gets the maximum frequency in the collection
Public propertymaxWeight
Gets the maximum weight
Public propertyname
Ime koje je dodeljeno objektu
(Inherited from IObjectWithName.)
Public propertyparent
Gets the parent.
Public propertysum
Gets the sum of all frequencies
Public propertysumWeight
Gets the sum weight. (no update check)
Top
Methods
  NameDescription
Public methodAdd(Object)
Implementation for serialization
Public methodAdd(IEnumerableIWeightTableTerm)
Adds the specified terms into table
Public methodAdd(String, Int32)
Adds the specified term given as string
Public methodAdd(IWeightTableTerm, Int32)
Adds the specified term - or updates existing
Public methodAddExternalDataTable
Loads term definitions from the specified DataTable, interpreting termName_column and termAFreq_column. Leave * to use export default column names.
Public methodAddExternalDocument
Copies matching terms from external document> adds new if have to, rise the abs frequency if exists
Public methodcontainsByName
Public methodCount
Number of terms defined in the document. If expandedCount is TRUE it will also count all instances defined within one semantic term
Public methodGetAFreq(String)
Gets the absolute frequency for the term
Public methodGetAFreq(IWeightTableTerm)
Gets the absolute frequency of the specified term
Public methodGetAllTerms
Public methodGetAllTermString
Returns list of all terms in nominal form or by name
Public methodGetBDFreq(String)
Public methodGetBDFreq(IWeightTableTerm)
Gets the binary document frequency of the specified term, i.e.: number of documents containing the term
Public methodGetCompiledTable
Public methodGetCrossSection
Gets the cross section of matched terms
Public methodGetCWeight
Gets the cumulative weight (sum of all weights)
Public methodGetDataTable
Gets the table.
Public methodGetDataTableClean
Exports clean version of data table - more compatibile for later load
Public methodGetIDF(String)
Gets the idf.
Public methodGetIDF(IWeightTableTerm)
Gets the idf - inverse document frequency
Public methodGetMatchByString
Public methodGetMatchTerm
Public methodGetMatchTermByName(String)
Gets the match term by the name.
Public methodGetMatchTermByName(IWeightTableTerm, Boolean)
Gets the match term by the name .
Public methodGetNFreq(String)
Gets the cumulative weight for the term
Public methodGetNFreq(IWeightTableTerm)
Gets the normalized frequency of the specified term
Public methodGetNWeight(String)
Gets the normalized weight for the term
Public methodGetNWeight(IWeightTableTerm)
Gets the normalized weight for the term
Public methodGetTF_IDF(String)
Public methodGetTF_IDF(IWeightTableTerm)
Gets the tf idf (term frequency - inverse document frequency
Public methodGetWeight(String)
Gets the weight for the term
Public methodGetWeight(IWeightTableTerm)
Gets the weight for the term
Public methodisMatch
Determines whether the specified term is contained within the document
Public methodisMatchByName
Heuristic method - comparing only the term name against the contained collection
Public methodisMatchBySemantics
Determines what kind of match this term might be to this table
Public methodRemoveTerm
Public methodRemoveUnderWeight
Removes the terms under specified weight.
Public methodRemoveZeroWeidht
Removes the terms with zero weidht.
Public methodSetWeightTo_FrequencyRatio
Sets the weight of each term as proportion between absolute frequency and total sum of all frequencies
Public methodSetWeightTo_NominalFrequency
Sets the term weight = as nominal fequency
Public methodSetWeightTo_TF_IDF
Sets the weights according to current TF_IDF of a term
Public methodupdateMaxValues
Updates the maximum AFreq and CWeight - if chagnes occured since last call.
Top
Extension Methods
  NameDescription
Public Extension MethodbuildDataTable
2017::Builds data table out of collection. Supported properties: primitives, enums and IGetFromToString interface types
(Defined by DataTableBuilders.)
Public Extension MethodBuildDataTableHorizontal
Builds the data table using reflection and selected columns. Supports formating instruction, expression and other advanced atributes
(Defined by PropertyDataStructureTools.)
Public Extension MethodbuildPropertyCollectionList
Builds the property collection list from IEnumerable source collection
(Defined by imbPropertyCollectionExtensions.)
Public Extension MethodConvertListIWeightTableTerm, TTarget (Defined by collectionExtensions.)
Public Extension MethodConvertToListTTarget (Defined by collectionExtensions.)
Public Extension Methodcount
Universal counting
(Defined by collectionExtensions.)
Public Extension MethodCreateNestedDataTableIWeightTableTerm, TInner
Creates the nested data table. http://stackoverflow.com/questions/33823820/convert-generic-nested-list-to-datatable
(Defined by DataTableETL.)
Public Extension MethodGetAggregatesIWeightTableTerm
Gets aggregated version of the objects
(Defined by collectionAggregation.)
Public Extension MethodgetAllEnums
Gathers all enumerations found in the collection
(Defined by collectionExtensions.)
Public Extension MethodgetAllOfTypeT
Gets the first instance of type in supplied collection. makeNewIfNotFound
(Defined by collectionExtensions.)
Public Extension MethodGetChartDataTableIWeightTableTerm
Makes data table for chart
(Defined by UniversalGenerators.)
Public Extension MethodGetCrossSectionIWeightTableTerm
Gets the cross section: only items that are in common to all collections
(Defined by collectionExtensions.)
Public Extension MethodGetDifferenceIWeightTableTerm (Defined by collectionExtensions.)
Public Extension MethodgetFirstOfTypeT
Gets the first instance that is compatibile with T in supplied collection. Supports PropertyCollection and other collections
(Defined by collectionExtensions.)
Public Extension MethodgetFirstSafe
Gets the first safe.
(Defined by collectionExtensions.)
Public Extension MethodgetFlatArrayT (Defined by collectionExtensions.)
Public Extension MethodgetFlatListT (Defined by collectionExtensions.)
Public Extension MethodGetHistogramModelIWeightTableTerm (Defined by histogramModelExtensions.)
Public Extension MethodGetMatches(IEnumerableString)Overloaded.
Returns the matching term entries
(Defined by weightTableSetOperations.)
Public Extension MethodGetMatches(IEnumerableIWeightTableTerm)Overloaded.
Returns the matching term entries
(Defined by weightTableSetOperations.)
Public Extension MethodGetScoreAggregate (Defined by weightTableSetOperations.)
Public Extension MethodGetScoreForMatch(IEnumerableString, termTableColumns, dataPointAggregationType)Overloaded.
Queries table for specified terms and return aggregated score. The score source is specified by tf_idf (only numeric columns are supported).
(Defined by weightTableSetOperations.)
Public Extension MethodGetScoreForMatch(IEnumerableIWeightTableTerm, termTableColumns, dataPointAggregationType)Overloaded.
Queries table for specified terms and return aggregated score. The score source is specified by tf_idf (only numeric columns are supported).
(Defined by weightTableSetOperations.)
Public Extension MethodGetSVGChartIWeightTableTerm (Defined by UniversalGenerators.)
Public Extension MethodGetSVGPieChartIWeightTableTerm
Gets the SVG pie or doughnut chart.
(Defined by UniversalGenerators.)
Public Extension MethodGetTrendIWeightTableTerm
Gets the trend from set of objects
(Defined by measureTrendTools.)
Public Extension MethodGetUnionIWeightTableTerm (Defined by collectionExtensions.)
Public Extension MethodimbFirstOrMoreIWeightTableTerm
Vraca jedan ili vise resursa koji ispunjavaju uslov
(Defined by collectionExtensions.)
Public Extension MethodimbFirstSafe(Int32)Overloaded.
Imbs the first safe.
(Defined by collectionExtensions.)
Public Extension MethodimbFirstSafeIWeightTableTerm(Int32)Overloaded.
Proverava uslov
(Defined by collectionExtensions.)
Public Extension MethodimbFirstSafeIWeightTableTerm(FuncIWeightTableTerm, Boolean)Overloaded.
Proverava uslov
(Defined by collectionExtensions.)
Public Extension MethodimbGetIndexOf
Gets index of item in an unknown enumeration
(Defined by collectionExtensions.)
Public Extension MethodimbGetItemAt
Universal method for getting element out of unknown IEnumerable
(Defined by collectionExtensions.)
Public Extension MethodimbLastSafeIWeightTableTerm
Imbs the last safe.
(Defined by collectionExtensions.)
Public Extension MethodisNullOrEmpty
Proverava da li je kolekcija null ili bez clanova
(Defined by collectionExtensions.)
Public Extension MethodmarkdownList
Creates list from collection of [strings, IEnumerable or Objects]
(Defined by imbStringMarkdownExtensions.)
Public Extension MethodRandomizeToListIWeightTableTerm
Returns a new list where the elements are randomly shuffled. Based on the Fisher-Yates shuffle, which has O(n) complexity.
(Defined by collectionExtensions.)
Public Extension MethodtakeFirstFromListIWeightTableTerm(IWeightTableTerm)Overloaded.
Vraca prvi element koji je pronadjen u ulaznom skupu - default vraca prvi element matchList
(Defined by collectionExtensions.)
Public Extension MethodtakeFirstFromListIWeightTableTerm(IEnumerableIWeightTableTerm, IWeightTableTerm)Overloaded.
Vraca prvi objekat koji se nalazi i u ovom skupu i u matchList skupu
(Defined by collectionExtensions.)
Public Extension MethodtextList
Creates list from collection of [strings, IEnumerable or Objects]
(Defined by imbStringTextExtensions.)
Public Extension MethodtoCsvFileIWeightTableTerm
2017: Saves CSV to file from path
(Defined by csvFileExtensions.)
Public Extension MethodtoCsvInLine
Renders CSV line from [!:object.toStringSafe()], [!:separator] is removed from item String
(Defined by imbDataExtensions.)
Public Extension MethodtoListIWeightTableTerm
Konvertuje niz u listu
(Defined by collectionExtensions.)
Top
See Also