weightTableTWeightTableTerm Class |
Namespace: imbSCI.DataComplex
public abstract class weightTable<TWeightTableTerm> : changeBindableBase, IWeightTable, IEnumerable<IWeightTableTerm>, IEnumerable, IObjectWithName where TWeightTableTerm : new(), IWeightTableTerm
The weightTableTWeightTableTerm type exposes the following members.
| Name | Description | |
|---|---|---|
| weightTableTWeightTableTerm | Initializes a new instance of the weightTableTWeightTableTerm class | |
| weightTableTWeightTableTerm(IWeightTableSet, String) |
Initializes a new instance of the [!:weightTable] class.
|
| Name | Description | |
|---|---|---|
| Changes |
Gets or sets the changes.
(Inherited from changeBindableBase.) | |
| HasChanges |
Gets a value indicating whether this instance has changes.
(Inherited from changeBindableBase.) | |
| max | ||
| maxWeight | ||
| name | ||
| parent | ||
| sum | ||
| sumWeight | ||
| terms |
Gets or sets the terms.
| |
| termSingleAddAllowed |
If TRUE allows only one add per table
|
| Name | Description | |
|---|---|---|
| Add(Object) |
Implementation for serialization
| |
| Add(IEnumerableIWeightTableTerm) |
Adds the specified terms into table
| |
| Add(weightTableTermCompiled) | ||
| Add(String, Int32) |
Adds the specified term string.
| |
| Add(IWeightTableTerm, Int32) |
Adds the specified term - or updates existing
| |
| AddExternalDataTable |
Loads term definitions from the specified DataTable, interpreting termName_column and termAFreq_column. Leave * to use export default column names.
| |
| AddExternalDocument |
Copies matching terms from external document> adds new if have to, rise the abs frequency if exists
| |
| buildTableRow | ||
| buildTableShema | ||
| containsByName |
Determines whether [contains by name] [the specified term name].
| |
| Count | ||
| Count(Boolean) | ||
| GetAFreq(String) |
Gets the absolute frequency for the term
| |
| GetAFreq(IWeightTableTerm) |
Gets the absolute frequency of the specified term
| |
| GetAllTerms | ||
| GetAllTermString |
Returns list of all terms in nominal form or by name - term keys
| |
| GetBDFreq(String) |
Gets the bd freq.
| |
| GetBDFreq(IWeightTableTerm) |
Gets the binary document frequency of the specified term, i.e.: number of documents containing the term
| |
| GetChanges |
Gets the changes.
(Inherited from changeBindableBase.) | |
| GetCompiledTable |
Generates a compiled version of TF-IDF table. weightTableCompiled | |
| GetCrossSection |
Gets the cross section of matched terms
| |
| GetCWeight |
Gets the cumulative weight (sum of all weights)
| |
| GetDataTable | ||
| GetDataTableClean |
Gets the data table clean.
| |
| GetEnumerator | ||
| GetIDF(String) |
Gets the idf.
| |
| GetIDF(IWeightTableTerm) |
Gets the idf - inverse document frequency
| |
| GetMatchAgainstTSecondTableTerm |
Gets the match against.
| |
| GetMatchByString |
Gets the match by string. The specified term must be lowercase, without spaces, interpunction etc. It tries with direct match (LemmaForm), then if fails tries with full search
| |
| GetMatchTerm |
Gets the match term.
| |
| GetMatchTermByName(String) |
Gets the match term by the name.
| |
| GetMatchTermByName(IWeightTableTerm, Boolean) |
Gets the match term by the name .
| |
| GetNFreq(String) |
Gets the normalized frequency by term name
| |
| GetNFreq(IWeightTableTerm) |
Gets the normalized frequency of the specified term
| |
| GetNWeight(String) |
Gets the normalized cumulative weight for the term
| |
| GetNWeight(IWeightTableTerm) |
Gets the normalized cumulative weight for the term
| |
| GetTF_IDF(String) |
Gets the tf idf.
| |
| GetTF_IDF(IWeightTableTerm) |
Gets the tf idf (term frequency - inverse document frequency
| |
| GetWeight(String) |
Gets the cumulative weight for the term
| |
| GetWeight(IWeightTableTerm) |
Gets the cumulative weight for the term
| |
| InvokeChanged |
Sets current state of the object to be Changed (i.e. from now on the object will know it had some changes since last Accept call);
(Inherited from changeBindableBase.) | |
| isMatch |
Determines whether the specified term is contained within the document
| |
| isMatchByName |
Heuristic method - comparing only the term name against the contained collection
| |
| isMatchBySemantics |
Determines what kind of match this term might be to this table
| |
| OnPropertyChanged |
Kreira event koji obaveštava da je promenjen neki parametar
(Inherited from changeBindableBase.) | |
| RemoveTerm | ||
| RemoveUnderWeight |
Removes the terms under specified weight.
| |
| RemoveZeroWeidht |
Removes the terms with zero weidht.
| |
| SetWeightTo_FrequencyRatio |
Sets the weight of each term as proportion between absolute frequency and total sum of all frequencies
| |
| SetWeightTo_NominalFrequency |
Sets the term weight = as nominal fequency
| |
| SetWeightTo_TF_IDF |
Sets the weights according to current TF_IDF of a term
| |
| updateMaxValues |
Updates the maximum AFreq and CWeight - if chagnes occured since last call.
|
| Name | Description | |
|---|---|---|
| PropertyChanged |
Occurs when a property value is changed
(Inherited from changeBindableBase.) |
| Name | Description | |
|---|---|---|
| BuildDataShema |
Builds the data table.
(Defined by PropertyDataStructureTools.) | |
| buildDataTable(String, Boolean, Boolean, PropertyCollectionExtended, String) | Overloaded.
2017::Builds data table out of collection. Supported properties: primitives, enums and IGetFromToString interface types
(Defined by DataTableBuilders.) | |
| buildDataTable(String, DataTableBuildersbuildDataTableOptions, PropertyCollectionExtended, String, ILogBuilder) | Overloaded.
2017:: Builds horizontal data table with columns mapping properties of the type.
(Defined by DataTableBuilders.) | |
| buildDataTable(String, Boolean, Boolean, Boolean, PropertyCollectionExtended, String) | Overloaded.
Builds the horizontal data table
(Defined by DataTableBuilders.) | |
| BuildDataTableHorizontal |
Builds the data table using reflection and selected columns. Supports formating instruction, expression and other advanced atributes
(Defined by PropertyDataStructureTools.) | |
| buildDataTableVerticalSummaryTable |
Builds the vertical table with all data
(Defined by DataTableBuilders.) | |
| buildPCE | (Defined by imbPropertyCollectionExtensions.) | |
| buildPropertyCollectionT |
Create or update property collection out of object properties
(Defined by imbPropertyCollectionExtensions.) | |
| buildPropertyCollectionList |
Builds the property collection list from IEnumerable source collection
(Defined by imbPropertyCollectionExtensions.) | |
| changeValueAsInt32 |
Changes the value as int32.
(Defined by imbValueChangers.) | |
| changeValueDouble |
Step je 0.01
(Defined by imbValueChangers.) | |
| ConstructTableWithRandomContent |
Constructs the data table and populates with random content of the table with.
(Defined by imbDataTableExtensions.) | |
| ConvertListIWeightTableTerm, TTarget | (Defined by collectionExtensions.) | |
| ConvertToListTTarget | (Defined by collectionExtensions.) | |
| count |
Universal counting
(Defined by collectionExtensions.) | |
| CreateNestedDataTableIWeightTableTerm, TInner |
Creates the nested data table. http://stackoverflow.com/questions/33823820/convert-generic-nested-list-to-datatable
(Defined by DataTableETL.) | |
| GetAggregatesIWeightTableTerm |
Gets aggregated version of the objects
(Defined by collectionAggregation.) | |
| getAllEnums |
Gathers all enumerations found in the collection
(Defined by collectionExtensions.) | |
| getAllOfTypeT |
Gets the first instance of type in supplied collection. makeNewIfNotFound (Defined by collectionExtensions.) | |
| GetChartDataTableIWeightTableTerm |
Makes data table for chart
(Defined by UniversalGenerators.) | |
| GetCrossSectionIWeightTableTerm |
Gets the cross section: only items that are in common to all collections
(Defined by collectionExtensions.) | |
| getDataTypeSafe |
V3.5> Experimentalna funkcija - na osnovu tipa vrsi konverziju
(Defined by imbStringCommonTools.) | |
| GetDefaultValueT |
Vraca tipiziranu podrazumevanu vrednost
(Defined by imbTypologyHelpers.) | |
| getDescriptionForDictionary |
Gets the description for dictionary, property table etc
(Defined by settingsEntriesInfoModelApi.) | |
| getDictionaryFromMappedSource |
Vraca recnik sa vrednostima iz objekta.
(Defined by propertyMappingTools.) | |
| GetDifferenceIWeightTableTerm | (Defined by collectionExtensions.) | |
| getEnumMemberPath |
Vraca enum member path koji moze da se koristi za preuzimanje enumeracije i njenog tipa
(Defined by imbEnumExtendBase.) | |
| GetExpressionResolved |
Resolves the specified expresion path, having host as starting node
(Defined by PropertyExpressionTools.) | |
| getFirstOfTypeT |
Gets the first instance that is compatibile with T in supplied collection. Supports PropertyCollection and other collections
(Defined by collectionExtensions.) | |
| getFirstSafe |
Gets the first safe.
(Defined by collectionExtensions.) | |
| getFlatArrayT | (Defined by collectionExtensions.) | |
| getFlatListT | (Defined by collectionExtensions.) | |
| GetHistogramModelIWeightTableTerm | (Defined by histogramModelExtensions.) | |
| GetMatches(IEnumerableString) | Overloaded.
Returns the matching term entries
(Defined by weightTableSetOperations.) | |
| GetMatches(IEnumerableIWeightTableTerm) | Overloaded.
Returns the matching term entries
(Defined by weightTableSetOperations.) | |
| getPathForObject |
2014c: Univerzalni konstruktor putanje
(Defined by resourcePathGenerator.) | |
| getPathForObjectAndParent |
Univerzalni konstruktor putanje za bilo koji tip i parent
(Defined by resourcePathGenerator.) | |
| getProperty |
Retrieves PropertyInfo found on path specified
(Defined by imbTypeQueryExtensions.) | |
| GetScoreAggregate | (Defined by weightTableSetOperations.) | |
| GetScoreForMatch(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.) | |
| GetScoreForMatch(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.) | |
| getSPEC | (Defined by imbTypeQueryExtensions.) | |
| getStringValue |
2013a> bezbedno vraca string verziju prosledjene vrednosti - Kreira stringValue
(Defined by imbDataExecutor.) | |
| GetSVGChartIWeightTableTerm | (Defined by UniversalGenerators.) | |
| GetSVGPieChartIWeightTableTerm |
Gets the SVG pie or doughnut chart.
(Defined by UniversalGenerators.) | |
| GetTrendIWeightTableTerm |
Gets the trend from set of objects
(Defined by measureTrendTools.) | |
| GetUnionIWeightTableTerm | (Defined by collectionExtensions.) | |
| GetUserManual |
Generates property manual
(Defined by settingsEntriesTools.) | |
| GetUserManualSaved |
Gets the user manual saved:
(Defined by settingsEntriesTools.) | |
| getValuesFromMappedSource | (Defined by propertyMappingTools.) | |
| imbAttributeToProperties |
Prebacuje vrednost iz atributa u propertije - u skladu sa podesenim mapiranjem (imbAttributeName.metaValueFromAttribute)
(Defined by imbAttributeTools.) | |
| imbConvertValueSafe |
2014c> bezbedna konverzija vrednosti
(Defined by imbTypeExtensions.) | |
| imbConvertValueSafeTypedT | (Defined by imbTypeExtensions.) | |
| imbFirstOrMoreIWeightTableTerm |
Vraca jedan ili vise resursa koji ispunjavaju uslov
(Defined by collectionExtensions.) | |
| imbFirstSafe(Int32) | Overloaded.
Imbs the first safe.
(Defined by collectionExtensions.) | |
| imbFirstSafeIWeightTableTerm(Int32) | Overloaded.
Proverava uslov
(Defined by collectionExtensions.) | |
| imbFirstSafeIWeightTableTerm(FuncIWeightTableTerm, Boolean) | Overloaded.
Proverava uslov
(Defined by collectionExtensions.) | |
| imbGetAllProperties |
Vraca sve propertije iz objekta koji su Public i Instance. Vraca i nasledjene propertije ali ako su pregazeni onda vraca samo najnoviji
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetAllValues |
Vraca sve vrednosti iz svih propertija koji su Public i Instance
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetCodeMark | (Defined by imbStringExtensions.) | |
| imbGetIndexOf |
Gets index of item in an unknown enumeration
(Defined by collectionExtensions.) | |
| imbGetItemAt |
Universal method for getting element out of unknown IEnumerable (Defined by collectionExtensions.) | |
| imbGetPropertySafe(String, Object, String) | Overloaded.
2013> Sigurno preuzimanje vrednosti objekta - podržava path:
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetPropertySafe(PropertyInfo, Object, Boolean, Object) | Overloaded.
2013> Sigurno preuzimanje vrednosti objekta - podržava path:
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetPropertySafe(PropertyInfo, Object, Boolean, Object, Boolean) | Overloaded. (Defined by imbTypologyPropertyGetSet.) | |
| imbGetPropertySafeT(PropertyInfo) | Overloaded.
2014:Maj - uzima property i odmah vrsi bezbednu konverziju!
(Defined by imbTypologyPropertyGetSet.) | |
| imbLastSafeIWeightTableTerm |
Imbs the last safe.
(Defined by collectionExtensions.) | |
| imbPropertyToString |
Sigurno iscitavanje stringa
(Defined by imbTypologyPropertyGetSet.) | |
| imbSetPropertyConvertSafe |
Algoritam sa konverzijom koja podrzava i Collection objekta koji imaju Add method.
(Defined by imbTypologyPropertyGetSet.) | |
| imbSetPropertySafe(String, Object, Boolean, Object, Boolean) | Overloaded.
2013> Sigurano postavljanje vrednosti objekta
(Defined by imbTypologyPropertyGetSet.) | |
| imbSetPropertySafe(PropertyInfo, Object, Boolean, Object, Boolean) | Overloaded.
2013> Sigurano postavljanje vrednosti objekta
(Defined by imbTypologyPropertyGetSet.) | |
| imbToBoolean |
Konvertuje bilo koju vrednost u Boolean
(Defined by imbTypeExtensions.) | |
| imbToEnumeration(Type, Enum) | Overloaded.
Convers an value to the best fit Enumeration member
(Defined by imbTypeEnumExtensions.) | |
| imbToEnumerationT | Overloaded. (Defined by imbTypeEnumExtensions.) | |
| imbToInstance |
Konvertuje u potrebni tip. Ukoliko postoji konstruktor sa parametrom koji je IsInstanceOfType(input) onda ce koristit njega
(Defined by imbTypeExtensions.) | |
| imbToNumber(Type) | Overloaded.
Konvertuje u broj prema zadatom tipu
(Defined by imbTypeExtensions.) | |
| imbToNumberT(Type) | Overloaded. (Defined by imbTypeExtensions.) | |
| isCoreColumn | (Defined by PropertyEntryColumnExtensions.) | |
| isNullOrEmpty | Overloaded.
Proverava da li je kolekcija null ili bez clanova
(Defined by collectionExtensions.) | |
| isNullOrEmpty | Overloaded. (Defined by imbSciStringExtensions.) | |
| isNullOrEmptyString |
Proverava da li je input null, ako je string onda ga proverava kao string ako je neki drugi objekat onda ga predvara u string pa proverava
(Defined by imbSciStringExtensions.) | |
| keyToString | (Defined by imbPropertyCollectionExtensions.) | |
| markdownList |
Creates list from collection of [strings, IEnumerable or Objects]
(Defined by imbStringMarkdownExtensions.) | |
| RandomizeToListIWeightTableTerm |
Returns a new list where the elements are randomly shuffled.
Based on the Fisher-Yates shuffle, which has O(n) complexity.
(Defined by collectionExtensions.) | |
| renderToTemplate |
Vraca string koji definise placeholder u template stringu
(Defined by stringTemplateTools.) | |
| resolvePath(String, pathResolveFlag) | Overloaded.
Najčešće korišćen metod za upit nad putanjom i objektom
(Defined by resourcePathResolver.) | |
| resolvePathT(String, pathResolveFlag) | Overloaded. (Defined by resourcePathResolver.) | |
| saveObjectToXML | (Defined by objectSerialization.) | |
| setObjectByMappedSource |
Primenjuje prosledjenu property mapu
(Defined by propertyMappingTools.) | |
| setObjectBySource |
Sets the object by source.
(Defined by imbTypeObjectOperations.) | |
| setObjectValueTypesBySource |
Sets the object by source, but only ValueTypes and string and only properties declared at top inherence level. Returns dictionary with updated properties (only if value changed)
(Defined by imbTypeObjectOperations.) | |
| setValuesToMappedTarget |
Postavlja vednosti iz recnika u dati ciljani objekat - da bi bilo kompatibilno niz mora biti u istom rasporedu kao i u property mapu
(Defined by propertyMappingTools.) | |
| sumValues |
Supports> String, Int32, any number via Double and Boolean
(Defined by imbTypeExtensions.) | |
| takeFirstFromListIWeightTableTerm(IWeightTableTerm) | Overloaded.
Vraca prvi element koji je pronadjen u ulaznom skupu - default vraca prvi element matchList
(Defined by collectionExtensions.) | |
| takeFirstFromListIWeightTableTerm(IEnumerableIWeightTableTerm, IWeightTableTerm) | Overloaded.
Vraca prvi objekat koji se nalazi i u ovom skupu i u matchList skupu
(Defined by collectionExtensions.) | |
| textList |
Creates list from collection of [strings, IEnumerable or Objects]
(Defined by imbStringTextExtensions.) | |
| toCsvFileIWeightTableTerm |
2017: Saves CSV to file from path
(Defined by csvFileExtensions.) | |
| toCsvInLine |
Renders CSV line from [!:object.toStringSafe()], [!:separator] is removed from item String
(Defined by imbDataExtensions.) | |
| toExpressionString |
Returns expression-ready string, wrapped in proper quotes if required
(Defined by imbStringFormats.) | |
| toListIWeightTableTerm |
Konvertuje niz u listu
(Defined by collectionExtensions.) | |
| toStringSafe | Overloaded. (Defined by imbStringFormats.) | |
| toStringSafe(String) | Overloaded. (Defined by imbStringFormats.) | |
| toStringSafe(String, String) | Overloaded.
Bezbedna konverzija u String -- ako je null onda valueForNull
(Defined by imbStringFormats.) |